* Sat Mar 01 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-6.sme
- move to full systemd units [SME: 12878]
This commit is contained in:
@@ -1,15 +1,24 @@
|
||||
[Unit]
|
||||
Description=dnscache.forwarder,
|
||||
Description=dnscache.forwarder, An iterative DNS forwarder resolver daemon
|
||||
Documentation=man:dnscache(8)
|
||||
After=network.target
|
||||
Requires=runit.service
|
||||
After=networking.service
|
||||
Requires=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Type=simple
|
||||
PermissionsStartOnly=true
|
||||
LimitDATA=12000000
|
||||
LimitNOFILE=250
|
||||
WorkingDirectory=/var/service/dnscache.forwarder/root
|
||||
Environment="DATALIMIT=12000000" "IP=127.0.0.2" FORWARDONLY=1 IPSEND=0.0.0.0 CACHESIZE=10000000 GID=410 UID=410 "ROOT=/var/service/dnscache.forwarder/root"
|
||||
ExecStartPre=/sbin/e-smith/service-status dnscache.forwarder
|
||||
ExecStart=/usr/bin/sv u /service/dnscache.forwarder
|
||||
ExecStop=/usr/bin/sv stop /service/dnscache.forwarder
|
||||
ExecReload=/usr/bin/sv t /service/dnscache.forwarder
|
||||
RemainAfterExit=yes
|
||||
ExecStartPre=/sbin/e-smith/systemd/dnscache.forwarder-pre
|
||||
ExecStart=/usr/local/bin/dnscache
|
||||
|
||||
Restart=always
|
||||
RestartSec=20s
|
||||
SyslogIdentifier=dnscache.forwarder
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
||||
|
0
root/usr/lib/systemd/system/dnscache.forwarder.service.d/.gitignore
vendored
Normal file
0
root/usr/lib/systemd/system/dnscache.forwarder.service.d/.gitignore
vendored
Normal file
@@ -1,15 +1,26 @@
|
||||
[Unit]
|
||||
Description=dnscache,
|
||||
Description=dnscache, An iterative DNS resolver daemon
|
||||
Documentation=man:dnscache(8)
|
||||
After=network.target
|
||||
Requires=runit.service
|
||||
After=networking.service
|
||||
Requires=network.target
|
||||
Wants=dnscache.forwarder.service
|
||||
#BindsTo= > Requires= > Wants= > Requisite=
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Type=simple
|
||||
PermissionsStartOnly=true
|
||||
LimitDATA=3000000
|
||||
LimitNOFILE=250
|
||||
WorkingDirectory=/var/service/dnscache/root
|
||||
Environment="DATALIMIT=3000000" "IP=192.168.233.1" FORWARDONLY=1 IPSEND=0.0.0.0 CACHESIZE=200000 GID=410 UID=410 "ROOT=/var/service/dnscache/root"
|
||||
ExecStartPre=/sbin/e-smith/service-status dnscache
|
||||
ExecStart=/usr/bin/sv u /service/dnscache
|
||||
ExecStop=/usr/bin/sv stop /service/dnscache
|
||||
ExecReload=/usr/bin/sv t /service/dnscache
|
||||
RemainAfterExit=yes
|
||||
ExecStartPre=/sbin/e-smith/systemd/dnscache-pre
|
||||
ExecStart=/usr/local/bin/dnscache
|
||||
|
||||
Restart=always
|
||||
RestartSec=20s
|
||||
SyslogIdentifier=dnscache
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
||||
|
0
root/usr/lib/systemd/system/dnscache.service.d/.gitignore
vendored
Normal file
0
root/usr/lib/systemd/system/dnscache.service.d/.gitignore
vendored
Normal file
Reference in New Issue
Block a user