mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-02 07:11:47 +01:00
Added description to init.d script in order to make it compliant with rc-system and avoid annoying warning messages on syslog. Deleted net dependency in order to avoid the error on startup "cannot start ulogd as networking would not start", since the required before firewall and firewall start before net.
42 lines
885 B
Plaintext
42 lines
885 B
Plaintext
#!/sbin/openrc-run
|
|
# 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 $
|
|
|
|
description="Netfilter userspace log daemon"
|
|
description_reload="Reload configuration"
|
|
|
|
extra_started_commands="reload"
|
|
|
|
depend() {
|
|
before firewall
|
|
}
|
|
|
|
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 -- \
|
|
$ARGS >/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 $?
|
|
}
|
|
|