summaryrefslogtreecommitdiff
blob: 9bdcc803e78ba3013f9039fec2b2f2ec5937ad64 (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
#!/sbin/runscript
#
# chkconfig: - 91 35
# description: Starts and stops the ulogd daemon
#
# config:  /etc/ulogd.conf

extra_started_commands="reload"

depend() {
	need net
	use mysql
}

initService() {
# Avoid using root's TMPDIR
unset TMPDIR

# Check that ulogd.conf exists.
[ -f /etc/ulogd.conf ] || exit 0

RETVAL=0
}

start() {
	initService
	ebegin "Starting ulogd"
	start-stop-daemon --start --quiet --exec /usr/sbin/ulogd -- -d >/dev/null 2>&1
	eend $?
}	

stop() {
	initService
	ebegin "Stopping ulogd"
	start-stop-daemon --stop --quiet --exec /usr/sbin/ulogd >/dev/null 2>&1
	eend $?
}	

reload() {
	initService
	ebegin "Reloading ulogd.conf file"
	killall -HUP ulogd
	eend $?
}