summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-11-20 12:37:43 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-11-20 12:37:43 +0000
commit95c2c8fc0605fd5bae25b305548cfe429ec88779 (patch)
tree6cfdb637f5ea80c06344f59c950dcea7b6ed8801 /sys-freebsd/freebsd-usbin
parentStable on hppa. (diff)
downloadgentoo-2-95c2c8fc0605fd5bae25b305548cfe429ec88779.tar.gz
gentoo-2-95c2c8fc0605fd5bae25b305548cfe429ec88779.tar.bz2
gentoo-2-95c2c8fc0605fd5bae25b305548cfe429ec88779.zip
Make the init script use foregroupd mode and create a pidfile to better identify the correct process to stop.
(Portage version: 2.1.2_rc2)
Diffstat (limited to 'sys-freebsd/freebsd-usbin')
-rw-r--r--sys-freebsd/freebsd-usbin/ChangeLog6
-rw-r--r--sys-freebsd/freebsd-usbin/files/rarpd.initd9
2 files changed, 11 insertions, 4 deletions
diff --git a/sys-freebsd/freebsd-usbin/ChangeLog b/sys-freebsd/freebsd-usbin/ChangeLog
index 986e9b89a12f..977138339fbe 100644
--- a/sys-freebsd/freebsd-usbin/ChangeLog
+++ b/sys-freebsd/freebsd-usbin/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-freebsd/freebsd-usbin
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.32 2006/11/19 17:02:29 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.33 2006/11/20 12:37:42 flameeyes Exp $
+
+ 20 Nov 2006; Diego Pettenò <flameeyes@gentoo.org> files/rarpd.initd:
+ Make the init script use foregroupd mode and create a pidfile to better
+ identify the correct process to stop.
19 Nov 2006; Diego Pettenò <flameeyes@gentoo.org> +files/rarpd.confd,
+files/rarpd.initd, freebsd-usbin-6.2_rc1.ebuild:
diff --git a/sys-freebsd/freebsd-usbin/files/rarpd.initd b/sys-freebsd/freebsd-usbin/files/rarpd.initd
index 34105eb838d9..ab4ad4f59c91 100644
--- a/sys-freebsd/freebsd-usbin/files/rarpd.initd
+++ b/sys-freebsd/freebsd-usbin/files/rarpd.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/rarpd.initd,v 1.1 2006/11/19 17:02:29 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/rarpd.initd,v 1.2 2006/11/20 12:37:43 flameeyes Exp $
depend() {
if [[ -z ${RARPD_ONLY_INTERFACE} ]]; then
@@ -21,12 +21,15 @@ start() {
fi
ebegin "Starting reverse ARP daemon"
- start-stop-daemon --start --exec /usr/sbin/rarpd -- ${rarpd_opts}
+ start-stop-daemon --start --background \
+ --pidfile /var/run/rarpd.pid --make-pidfile \
+ --exec /usr/sbin/rarpd -- -f ${rarpd_opts}
eend $?
}
stop() {
ebegin "Stopping reverse ARP daemon"
- start-stop-daemon --stop --exec /usr/sbin/rarpd -- ${rarpd_opts}
+ start-stop-daemon --stop --pidfile /var/run/rarpd.pid \
+ --exec /usr/sbin/rarpd -- ${rarpd_opts}
eend $?
}