You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/ulogd/files/ulogd

37 lines
759 B

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/files/ulogd,v 1.5 2012/01/01 01:01:06 idl0r Exp $
extra_started_commands="reload"
depend() {
need net
}
checkconfig() {
if [ ! -e /etc/ulogd.conf ]; then
eerror "You need /etc/ulogd.conf"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting ulogd"
start-stop-daemon --start --quiet --exec /usr/sbin/ulogd -- -u ulogd -d >/dev/null 2>&1
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 $?
}