blob: 1fa205c4c1eb5862acc9641423c65b0166b63b22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#!/bin/sh
#
# Startup script for the mandi daemon (oblin@mandriva.com)
#
# chkconfig: 2345 26 59
#
# description: Network monitoring daemon (Interactive Firewall and wireless)
#
#
. /etc/init.d/functions
case "$1" in
start)
gprintf "Starting mandi daemon: "
daemon /usr/sbin/mandi -d
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/mandi
;;
stop)
gprintf "Shutting down mandi daemon: "
killproc mandi
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/mandi
;;
status)
status mandi
RETVAL=$?
;;
restart|reload)
$0 stop
$0 start
;;
condrestart)
[ -f /var/lock/subsys/mandi ] && restart || :
;;
*)
gprintf "Usage: %s {start|stop|status|restart}\n" "$0"
RETVAL=1
;;
esac
exit $RETVAL
|