summaryrefslogtreecommitdiff
path: root/community/radvd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-15 00:01:19 +0000
committerroot <root@rshg054.dnsready.net>2012-03-15 00:01:19 +0000
commit14635ca5380a480450a66c3fcc29992d29a2bd8e (patch)
treea2f8e712c9e15b829397666c06d1cdd1a877d8a6 /community/radvd
parent01a0c4bc740842efa3bf1a7e1d6c8be5656e4e2a (diff)
Thu Mar 15 00:01:19 UTC 2012
Diffstat (limited to 'community/radvd')
-rw-r--r--community/radvd/PKGBUILD10
-rw-r--r--community/radvd/radvd.conf6
-rw-r--r--community/radvd/radvd.rc7
-rw-r--r--community/radvd/radvd.service2
4 files changed, 16 insertions, 9 deletions
diff --git a/community/radvd/PKGBUILD b/community/radvd/PKGBUILD
index 6e6d9fd1f..f995de0ae 100644
--- a/community/radvd/PKGBUILD
+++ b/community/radvd/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 66970 2012-03-03 00:47:31Z seblu $
+# $Id: PKGBUILD 67688 2012-03-13 21:44:10Z seblu $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Mark Smith <markzzzsmith@yahoo.com.au>
pkgname=radvd
pkgver=1.8.5
-pkgrel=1
+pkgrel=2
pkgdesc='IPv6 Router Advertisement Daemon'
url='http://www.litech.org/radvd/'
license=('custom')
@@ -17,9 +17,9 @@ source=("http://www.litech.org/radvd/dist/$pkgname-$pkgver.tar.gz"
"$pkgname.conf"
"$pkgname.service")
sha1sums=('344c145bd29938b7eefb0210cf92bf18df3e191d'
- '7b187db1f0ba2897cc07ea14233c079593b69ef0'
- 'd7755ac7e752452e5ac92d2bfd970db00525902d'
- 'd95dc4d650a086641d62bf42806669e0a407d1df')
+ '9acb452eede739ca6ce42c9470e8bf258a3dddf4'
+ '63ce41d790a0472e6b3b15928f6a71d1dbb7700d'
+ '9cb6b2eaaf445fe8d17dfc50fde15709d4de7d1d')
build() {
cd ${pkgname}-${pkgver}
diff --git a/community/radvd/radvd.conf b/community/radvd/radvd.conf
index 26cd410d1..47811d6cc 100644
--- a/community/radvd/radvd.conf
+++ b/community/radvd/radvd.conf
@@ -1,3 +1,7 @@
# vim:set ts=2 sw=2 ft=sh noet:
-DAEMON_OPTS='--logmethod syslog'
+# daemon pid file
+#PIDFILE='/run/radvd.pid'
+
+# daemon options. treated as an array.
+DAEMON_OPTS=('--logmethod=syslog')
diff --git a/community/radvd/radvd.rc b/community/radvd/radvd.rc
index b5dc6e27b..fdd9ee8ce 100644
--- a/community/radvd/radvd.rc
+++ b/community/radvd/radvd.rc
@@ -6,12 +6,15 @@
NAME='IPv6 Router Advertisement Daemon'
DAEMON=/usr/sbin/radvd
-PID=$(pidof -o %PPID $DAEMON)
+PIDFILE=${PIDFILE:-/run/${0##*/}.pid}
+DAEMON_OPTS+=("--pidfile=$PIDFILE")
+[[ -r "$PIDFILE" ]] && read PID < "$PIDFILE"
case "$1" in
start)
stat_busy "Starting $NAME daemon"
- [[ ! $PID ]] && $DAEMON $DAEMON_OPTS && add_daemon $NAME && stat_done && exit 0
+ [[ ! $PID ]] && $DAEMON "${DAEMON_OPTS[@]}" &&
+ add_daemon $NAME && stat_done && exit 0
stat_fail
;;
stop)
diff --git a/community/radvd/radvd.service b/community/radvd/radvd.service
index 47a5f7f67..f6f5ad67e 100644
--- a/community/radvd/radvd.service
+++ b/community/radvd/radvd.service
@@ -2,7 +2,7 @@
Description=IPv6 Router Advertisement Daemon
[Service]
-ExecStart=/usr/sbin/radvd --nodaemon --logmethod stderr
+ExecStart=/usr/sbin/radvd --nodaemon --logmethod=stderr
[Install]
WantedBy=multi-user.target