Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Berkeley Internet Name Domain (DNS) |
| 3 | Wants=nss-lookup.target |
| 4 | Before=nss-lookup.target |
| 5 | After=network.target |
| 6 | |
| 7 | [Service] |
| 8 | Type=forking |
| 9 | EnvironmentFile=-/etc/default/bind9 |
| 10 | PIDFile=/run/named/named.pid |
| 11 | |
| 12 | ExecStartPre=@SBINDIR@/generate-rndc-key.sh |
| 13 | ExecStart=@SBINDIR@/named $OPTIONS |
| 14 | |
| 15 | ExecReload=@BASE_BINDIR@/sh -c '@SBINDIR@/rndc reload > /dev/null 2>&1 || @BASE_BINDIR@/kill -HUP $MAINPID' |
| 16 | |
| 17 | ExecStop=@BASE_BINDIR@/sh -c '@SBINDIR@/rndc stop > /dev/null 2>&1 || @BASE_BINDIR@/kill -TERM $MAINPID' |
| 18 | |
| 19 | PrivateTmp=true |
| 20 | |
| 21 | [Install] |
| 22 | WantedBy=multi-user.target |