blob: 89e71e88129fe0de13e777c273772e205e4b267d (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#!/bin/sh
# start, stop, restart and status of burp
RETVAL=0
start()
{
echo "Starting burp: /usr/sbin/burp -c /etc/burp/burp-server.conf"
/usr/sbin/burp -c /etc/burp/burp-server.conf
RETVAL=$?
[ "$RETVAL" = 0 ] && touch /var/lock/subsys/burp
return $RETVAL
}
stop()
{
echo "Stopping burp... "
killall burp 2>/dev/null
RETVAL=$?
rm -f /var/lock/subsys/burp
return $RETVAL
}
restart()
{
stop
sleep 1
start
}
status()
{
echo -n $"Checking burp: "
/bin/kill -s IOT burp 2>/dev/null
RETVAL=$?
if [ $RETVAL = 0 ]; then
echo "burp is running"
else
echo "burp is not running"
fi
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
status)
status
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
RETVAL=1
;;
esac
exit $RETVAL
|