summaryrefslogtreecommitdiffstats
path: root/systemd/knot-resolver.service.in
blob: 4cf544ad2fcdacb20ece69e4c82bc4eb936f4988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description=Knot Resolver Manager
Documentation=man:knot-resolver.systemd(7)
Wants=network-online.target
After=network-online.target
Before=nss-lookup.target
Wants=nss-lookup.target

[Service]
Type=notify
TimeoutStartSec=600s
ExecStart=@bin_dir@/knot-resolver --config=@etc_dir@/config.yaml
Environment=KRES_LOGGING_TARGET=syslog
ExecReload=@bin_dir@/kresctl --config=@etc_dir@/config.yaml reload
KillSignal=SIGINT
WorkingDirectory=@systemd_work_dir@
User=@user@
Group=@group@
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETPCAP
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SETPCAP

[Install]
WantedBy=multi-user.target