/lib/systemd/system/knot.service is in knot 1.4.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | [Unit]
Description=Knot DNS server
After=network.target
[Service]
Environment=CONFFILE=/etc/knot/knot.conf
ExecStartPre=/usr/lib/knot/prepare-environment $CONFFILE
ExecReload=/usr/sbin/knotc reload
ExecStart=/usr/sbin/knotd -c $CONFFILE
Restart=on-abort
[Install]
WantedBy=multi-user.target
|