Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
476 richard 1
#!/bin/sh
2
#
3
# chkconfig: 345 81 19
4
# description: ulogd is the userspace logging daemon for netfilter/iptables
5
#
6
 
7
 
8
. /etc/rc.d/init.d/functions
9
 
10
 
11
function start()
12
{
13
	printf "Starting %s: " "ulogd"
14
	for i in `ls /etc/ulogd-*`
15
		do
16
			daemon /usr/sbin/ulogd -d -c $i
17
		done
18
	echo
19
	touch /var/lock/subsys/ulogd
20
}
21
 
22
 
23
function stop()
24
{
25
	printf "Stopping %s: " "ulogd"
26
	killproc ulogd
27
	echo
28
	rm -f /var/lock/subsys/ulogd
29
}
30
 
31
 
32
function reload()
33
{
34
	pid=`pidof ulogd`
35
	if [ "x$pid" != "x" ]; then
36
		kill -HUP $pid 2>/dev/null
37
	fi
38
	touch /var/lock/subsys/ulogd
39
}
40
 
41
 
42
case "$1" in
43
  start)
44
	start
45
	;;
46
  stop)
47
  	stop
48
	;;
49
  restart)
50
	stop
51
	start
52
	;;
53
  reload)
54
	reload
55
	;;
56
  status)
57
	status ulogd
58
	;;
59
  *)
60
	printf "Usage: %s {start|stop|status|restart|reload}\n" "ulogd"
61
	exit 1
62
esac
63
 
64
exit 0