2023-07-12 08:51:05 +01:00
|
|
|
[Unit]
|
2025-03-04 22:51:37 -05:00
|
|
|
Description=dnscache, An iterative DNS resolver daemon
|
|
|
|
Documentation=man:dnscache(8)
|
2023-07-12 08:51:05 +01:00
|
|
|
After=network.target
|
2025-03-04 22:51:37 -05:00
|
|
|
After=networking.service
|
|
|
|
Requires=network.target
|
|
|
|
Wants=dnscache.forwarder.service
|
|
|
|
#BindsTo= > Requires= > Wants= > Requisite=
|
2023-07-12 08:51:05 +01:00
|
|
|
|
|
|
|
[Service]
|
2025-03-04 22:51:37 -05:00
|
|
|
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"
|
2023-07-12 08:51:05 +01:00
|
|
|
ExecStartPre=/sbin/e-smith/service-status dnscache
|
2025-03-04 22:51:37 -05:00
|
|
|
ExecStartPre=/sbin/e-smith/systemd/dnscache-pre
|
|
|
|
ExecStart=/usr/local/bin/dnscache
|
|
|
|
|
|
|
|
Restart=always
|
|
|
|
RestartSec=20s
|
|
|
|
SyslogIdentifier=dnscache
|
2023-07-12 08:51:05 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sme-server.target
|