diff options
author | 2005-06-24 13:52:18 +0000 | |
---|---|---|
committer | 2005-06-24 13:52:18 +0000 | |
commit | d30ea2adc426150c1e1d76c1c41d486160cbabe2 (patch) | |
tree | 00f399f78fed2693a09e3d591c602618a6d5f2ca /app-admin/ulog-acctd/files | |
parent | make more respectful of CFLAGS (#79072). thanks Stefan Briesenick (diff) | |
download | gentoo-2-d30ea2adc426150c1e1d76c1c41d486160cbabe2.tar.gz gentoo-2-d30ea2adc426150c1e1d76c1c41d486160cbabe2.tar.bz2 gentoo-2-d30ea2adc426150c1e1d76c1c41d486160cbabe2.zip |
added init script. thanks to Radek Podgorny (#79034)
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'app-admin/ulog-acctd/files')
-rw-r--r-- | app-admin/ulog-acctd/files/init.d/ulog-acctd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-admin/ulog-acctd/files/init.d/ulog-acctd b/app-admin/ulog-acctd/files/init.d/ulog-acctd new file mode 100644 index 000000000000..c752897ed189 --- /dev/null +++ b/app-admin/ulog-acctd/files/init.d/ulog-acctd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# +# chkconfig: - 91 35 +# description: Starts and stops the ulog-acctd daemon + +# We should add "pause" and "resume" actions - Radek Podgorny +#opts="${opts} pause resume" + + +depend() { + need net +} + + +start() { + ebegin "Starting ulog-acctd" + start-stop-daemon --start --quiet --exec /usr/sbin/ulog-acctd >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping ulog-acctdd" + start-stop-daemon --stop --quiet --exec /usr/sbin/ulog-acctd >/dev/null 2>&1 + eend $? +} |