diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-03 07:41:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-03 07:41:11 +0000 |
commit | 09ce0508afe6568cf580f53fb9952963125fff43 (patch) | |
tree | be336c26f16f7fd1e5c5454738c9332da34fb2d1 /testing/ulogd/ulogd.initd | |
parent | 9ad548df8aa2a860ca311453ed3d6a98962f32f5 (diff) | |
download | aports-09ce0508afe6568cf580f53fb9952963125fff43.tar.bz2 aports-09ce0508afe6568cf580f53fb9952963125fff43.tar.xz |
Revert "testing/*: remove from stable branch"
This reverts commit 9ad548df8aa2a860ca311453ed3d6a98962f32f5.
I'll delete them one by one.
Diffstat (limited to 'testing/ulogd/ulogd.initd')
-rw-r--r-- | testing/ulogd/ulogd.initd | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/ulogd/ulogd.initd b/testing/ulogd/ulogd.initd new file mode 100644 index 00000000..4413327b --- /dev/null +++ b/testing/ulogd/ulogd.initd @@ -0,0 +1,38 @@ +#!/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 + after 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 >/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 $? +} + |