]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/packages/sane
update Tor to 0.3.5.8
[people/pmueller/ipfire-2.x.git] / src / initscripts / packages / sane
1 #!/bin/sh
2 ########################################################################
3 # Begin $rc_base/init.d/sane
4 #
5 # Description : Sane Network deamon
6 #
7 # Authors : Arne Fitzenreiter (arne_f@ipfire.org)
8 #
9 # Version : 01.00
10 #
11 # Notes : runs sanedloop ibecause saned is intended
12 # for use with (x)inet.d
13 #
14 ########################################################################
15
16 . /etc/sysconfig/rc
17 . ${rc_functions}
18
19 case "${1}" in
20 start)
21 boot_mesg "Starting saned - network scanner deamon..."
22 loadproc /usr/local/bin/sanedloop
23 evaluate_retval
24 ;;
25
26 stop)
27 boot_mesg "Stopping saned - network scanner deamon..."
28 killproc sanedloop
29 killall -s KILL -w saned > /dev/null 2>&1
30 exit 0
31 ;;
32
33 restart)
34 ${0} stop
35 sleep 1
36 ${0} start
37 ;;
38
39 status)
40 statusproc /usr/bin/sanedloop
41 statusproc /usr/sbin/saned
42 ;;
43
44 *)
45 echo "Usage: ${0} {start|stop|restart|status}"
46 exit 1
47 ;;
48 esac
49
50 # End $rc_base/init.d/sane