diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-10-17 15:05:55 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2014-10-21 15:07:12 -0400 |
commit | 350139ba63fc1cf84d04c482a5407dfa8b724f63 (patch) | |
tree | 812bf877d59c41106cfaeb0585987c51b51dc5cc /meta-networking/recipes-daemons/radvd/radvd.inc | |
parent | d63401ea24931f3fff02246ca557e95dff9e56f0 (diff) | |
download | meta-openembedded-350139ba63fc1cf84d04c482a5407dfa8b724f63.tar.gz |
radvd: fix daemon start-up
1. Fix radvd.service to start daemon correctly.
2. Make the daemon run under 'radvd' user by default.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons/radvd/radvd.inc')
-rw-r--r-- | meta-networking/recipes-daemons/radvd/radvd.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-networking/recipes-daemons/radvd/radvd.inc b/meta-networking/recipes-daemons/radvd/radvd.inc index 85d1a85b1..6b595b07f 100644 --- a/meta-networking/recipes-daemons/radvd/radvd.inc +++ b/meta-networking/recipes-daemons/radvd/radvd.inc | |||
@@ -17,7 +17,8 @@ LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=73ebbf7182ae996e65e8fadc9a8c45db" | |||
17 | SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \ | 17 | SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \ |
18 | file://radvd.init \ | 18 | file://radvd.init \ |
19 | file://radvd.service \ | 19 | file://radvd.service \ |
20 | file://volatiles.03_radvd" | 20 | file://volatiles.03_radvd \ |
21 | file://radvd.default" | ||
21 | 22 | ||
22 | inherit autotools update-rc.d useradd pkgconfig systemd | 23 | inherit autotools update-rc.d useradd pkgconfig systemd |
23 | 24 | ||
@@ -44,6 +45,9 @@ do_install_append () { | |||
44 | -e 's#@SBINDIR@#${sbindir}#g' \ | 45 | -e 's#@SBINDIR@#${sbindir}#g' \ |
45 | -e 's#@BASE_BINDIR@#${base_bindir}#g' ${D}${systemd_unitdir}/system/radvd.service | 46 | -e 's#@BASE_BINDIR@#${base_bindir}#g' ${D}${systemd_unitdir}/system/radvd.service |
46 | 47 | ||
48 | # Install default environment file | ||
49 | install -m 0644 ${WORKDIR}/radvd.default ${D}${sysconfdir}/default/radvd | ||
50 | |||
47 | # Documentation | 51 | # Documentation |
48 | for i in radvd.conf.example README; do \ | 52 | for i in radvd.conf.example README; do \ |
49 | install -m 0644 ${S}/$i ${D}${docdir}/radvd; \ | 53 | install -m 0644 ${S}/$i ${D}${docdir}/radvd; \ |