mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 12:32:59 +02:00
fix service.cgi hangs if the initscript of an addon dosn't close output
improved sanedloop and sane initscript git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1251 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -19,20 +19,20 @@
|
||||
case "${1}" in
|
||||
start)
|
||||
boot_mesg "Starting saned - network scanner deamon..."
|
||||
killall -s KILL -w sanedloop > /dev/null 2>&1
|
||||
killall -s KILL -w saned > /dev/null 2>&1
|
||||
/usr/local/bin/sanedloop &
|
||||
loadproc /usr/local/bin/sanedloop
|
||||
evaluate_retval
|
||||
;;
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping saned - network scanner deamon..."
|
||||
killall -s KILL -w sanedloop > /dev/null 2>&1
|
||||
killproc sanedloop
|
||||
killall -s KILL -w saned > /dev/null 2>&1
|
||||
echo_ok
|
||||
exit 0
|
||||
;;
|
||||
|
||||
restart)
|
||||
${0} stop
|
||||
sleep 1
|
||||
${0} start
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user