diff options
Diffstat (limited to 'sys-block/vblade/files/init.d-vblade.vblade0')
-rw-r--r-- | sys-block/vblade/files/init.d-vblade.vblade0 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys-block/vblade/files/init.d-vblade.vblade0 b/sys-block/vblade/files/init.d-vblade.vblade0 index 8f4f27758f14..bb2cdc11067f 100644 --- a/sys-block/vblade/files/init.d-vblade.vblade0 +++ b/sys-block/vblade/files/init.d-vblade.vblade0 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-block/vblade/files/init.d-vblade.vblade0,v 1.1 2006/01/25 06:17:55 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-block/vblade/files/init.d-vblade.vblade0,v 1.2 2006/07/22 05:05:56 robbat2 Exp $ opts="${opts} checkconfig" @@ -95,15 +95,19 @@ start() { --pidfile ${pidfile} --background \ --make-pidfile --exec /usr/sbin/vbladed -- \ ${shelf} ${slot} ${netif} "${src}" - #${shelf} ${slot} ${netif} "${src}" 2>&1 | logger -t ${srvname} & eend $? + + #${shelf} ${slot} ${netif} "${src}" 2>&1 | logger -t ${srvname} & } stop() { ebegin "Stopping ${srvname}" - start-stop-daemon --stop --quiet --pidfile ${pidfile} + #start-stop-daemon --stop --quiet --pidfile ${pidfile} + ps -Ao pid,args |egrep "^[[:digit:]]+ /usr/sbin/vblade ${@}" | awk '{print $1}' | xargs kill eend $? + + #start-stop-daemon --stop --quiet --exec /usr/sbin/vblade } -# vim: ft=filetype=gentoo-init-d syntax=filetype=gentoo-init-d : +# vim: ft=gentoo-init-d syntax=gentoo-init-d : # vim: ai sw=4 sts=4 ts=4 : |