ulogd.initd 787 Bytes
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1 2 3 4 5 6 7 8 9
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/app-admin/ulogd/files/ulogd,v 1.2 2004/07/13 16:32:25 aliz Exp $

opts="reload"

depend() {
	need net
10
	after firewall
Carlo Landmeter's avatar
Carlo Landmeter committed
11 12 13 14 15 16 17 18 19 20 21 22
}

checkconfig() {
	if [ ! -e /etc/ulogd.conf ]; then
		eerror "You need /etc/ulogd.conf"
		return 1
	fi
}

start() {
	checkconfig || return 1
	ebegin "Starting ulogd"
23 24
	start-stop-daemon --start --quiet --exec /usr/sbin/ulogd -- \
	$ARGS >/dev/null 2>&1
Carlo Landmeter's avatar
Carlo Landmeter committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
	eend $?
}	

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

reload() {
        ebegin "Reloading ulogd.conf file"
	killall -HUP ulogd &>/dev/null
	eend $?
}