Files
bpfire/src/initscripts/init.d/sane
arne_f 08efdb4f26 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
2008-03-05 17:08:22 +00:00

51 lines
942 B
Bash

#!/bin/sh
########################################################################
# Begin $rc_base/init.d/sane
#
# Description : Sane Network deamon
#
# Authors : Arne Fitzenreiter (arne_f@ipfire.org)
#
# Version : 01.00
#
# Notes : runs sanedloop ibecause saned is intended
# for use with (x)inet.d
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
boot_mesg "Starting saned - network scanner deamon..."
loadproc /usr/local/bin/sanedloop
evaluate_retval
;;
stop)
boot_mesg "Stopping saned - network scanner deamon..."
killproc sanedloop
killall -s KILL -w saned > /dev/null 2>&1
exit 0
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /usr/bin/sanedloop
statusproc /usr/sbin/saned
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/sane