summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-10-17 15:05:55 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2014-10-21 15:07:12 -0400
commit350139ba63fc1cf84d04c482a5407dfa8b724f63 (patch)
tree812bf877d59c41106cfaeb0585987c51b51dc5cc /meta-networking
parentd63401ea24931f3fff02246ca557e95dff9e56f0 (diff)
downloadmeta-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')
-rw-r--r--meta-networking/recipes-daemons/radvd/files/radvd.default1
-rw-r--r--meta-networking/recipes-daemons/radvd/files/radvd.service5
-rw-r--r--meta-networking/recipes-daemons/radvd/radvd.inc6
3 files changed, 7 insertions, 5 deletions
diff --git a/meta-networking/recipes-daemons/radvd/files/radvd.default b/meta-networking/recipes-daemons/radvd/files/radvd.default
new file mode 100644
index 000000000..7cb73c771
--- /dev/null
+++ b/meta-networking/recipes-daemons/radvd/files/radvd.default
@@ -0,0 +1 @@
OPTIONS="-u radvd"
diff --git a/meta-networking/recipes-daemons/radvd/files/radvd.service b/meta-networking/recipes-daemons/radvd/files/radvd.service
index 3aac7b27d..e60798a6b 100644
--- a/meta-networking/recipes-daemons/radvd/files/radvd.service
+++ b/meta-networking/recipes-daemons/radvd/files/radvd.service
@@ -4,11 +4,8 @@ After=network.target
4ConditionPathExists=@SYSCONFDIR@/radvd.conf 4ConditionPathExists=@SYSCONFDIR@/radvd.conf
5 5
6[Service] 6[Service]
7Type=forking
8PIDFile=/var/run/radvd/radvd.pid
9EnvironmentFile=-@SYSCONFDIR@/default/radvd 7EnvironmentFile=-@SYSCONFDIR@/default/radvd
10ExecStartPre=@BASE_BINDIR@/mkdir -p /var/run/radvd 8ExecStart=@SBINDIR@/radvd -n $OPTIONS
11ExecStart=@SBINDIR@/radvd $OPTIONS
12 9
13[Install] 10[Install]
14WantedBy=multi-user.target 11WantedBy=multi-user.target
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"
17SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \ 17SRC_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
22inherit autotools update-rc.d useradd pkgconfig systemd 23inherit 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; \