]> git.ipfire.org Git - ipfire-2.x.git/blame - src/initscripts/init.d/sane
deleted empty collectd rootfile
[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
AF
21 boot_mesg "Starting saned - network scanner deamon..."
22 killall -s KILL -w sanedloop > /dev/nul 2>&1
23 killall -s KILL -w saned > /dev/nul 2>&1
64187e11
AF
24 /usr/local/bin/sanedloop &
25 evaluate_retval
26 ;;
27
28 stop)
3184c6f9
AF
29 boot_mesg "Stopping saned - network scanner deamon..."
30 killall -s KILL -w sanedloop > /dev/nul 2>&1
31 killall -s KILL -w saned > /dev/nul 2>&1
64187e11
AF
32 echo_ok
33 ;;
34
35 restart)
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