2008-07-25 05:18:53 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
#%stage: setup
|
|
|
|
#%depends: killblogd
|
|
|
|
#%provides: killprogs
|
|
|
|
#
|
2013-07-24 16:43:11 +02:00
|
|
|
#%programs: kill
|
|
|
|
#%programs: umount
|
2008-07-25 05:18:53 +02:00
|
|
|
#%programs: usleep
|
|
|
|
#%dontshow
|
|
|
|
#
|
|
|
|
##### blogd end2
|
|
|
|
##
|
|
|
|
## Really kill blogd this time.
|
|
|
|
##
|
|
|
|
## Command line parameters
|
|
|
|
## -----------------------
|
|
|
|
##
|
|
|
|
|
|
|
|
if test -n "$blogd_pid" ; then
|
|
|
|
kill -QUIT "$blogd_pid"
|
2009-04-29 01:44:57 +02:00
|
|
|
typeset -i bquit=50
|
|
|
|
while test -d "/proc/$blogd_pid" ; do
|
2009-02-12 23:00:16 +01:00
|
|
|
usleep 30000
|
2009-04-29 01:44:57 +02:00
|
|
|
if ((bquit-- <= 0)) ; then
|
|
|
|
kill -KILL "$blogd_pid"
|
|
|
|
break
|
|
|
|
fi
|
2008-07-25 05:18:53 +02:00
|
|
|
done
|
2009-04-29 01:44:57 +02:00
|
|
|
unset bquit blogd_pid
|
|
|
|
if test "$devpts" = "yes" ; then
|
2008-07-25 05:18:53 +02:00
|
|
|
umount -t devpts /dev/pts
|
|
|
|
fi
|
|
|
|
fi
|