]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/initscripts/init.d/sane
Merge branch 'iptables-upnpfw' into core67-merge
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / sane
CommitLineData
64187e11
AF
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
19case "${1}" in
20 start)
3184c6f9 21 boot_mesg "Starting saned - network scanner deamon..."
08efdb4f 22 loadproc /usr/local/bin/sanedloop
64187e11
AF
23 evaluate_retval
24 ;;
25
26 stop)
3184c6f9 27 boot_mesg "Stopping saned - network scanner deamon..."
08efdb4f 28 killproc sanedloop
7f27bd5d 29 killall -s KILL -w saned > /dev/null 2>&1
08efdb4f 30 exit 0
64187e11
AF
31 ;;
32
33 restart)
08efdb4f
AF
34 ${0} stop
35 sleep 1
64187e11
AF
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 ;;
48esac
49
50# End $rc_base/init.d/sane