diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-04-23 17:40:51 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-24 17:55:15 +0100 |
commit | b45533c1c05986b01ea59ea7fb35501436117337 (patch) | |
tree | 9bde33e1e6662c9d68cb14ea5edd04ef4135fc70 /meta/recipes-connectivity/bind/bind/named.service | |
parent | 4593e1b0a3bcc3027e801bca0354887884ff9e15 (diff) | |
download | poky-b45533c1c05986b01ea59ea7fb35501436117337.tar.gz |
bind: add systemd support
Add systemd support for bind.
(From OE-Core rev: 812f69fee5fceef853c42960f3d90491bda8378a)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/bind/bind/named.service')
-rw-r--r-- | meta/recipes-connectivity/bind/bind/named.service | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bind/bind/named.service b/meta/recipes-connectivity/bind/bind/named.service new file mode 100644 index 0000000000..1792e414ab --- /dev/null +++ b/meta/recipes-connectivity/bind/bind/named.service | |||
@@ -0,0 +1,22 @@ | |||
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/sysconfig/named | ||
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 | ||