diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-24 09:41:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-24 09:41:22 +0000 |
commit | 8efc2b84f3607bd0fcd164ad0aaa1c42783f6cb1 (patch) | |
tree | 01d8542f08c3a38a65ec4d3aef817931ade9efed /main/collectd/collectd.initd | |
parent | eb8d770a77408f127ff2fa138aad5cb07dde8d08 (diff) | |
download | aports-8efc2b84f3607bd0fcd164ad0aaa1c42783f6cb1.tar.bz2 aports-8efc2b84f3607bd0fcd164ad0aaa1c42783f6cb1.tar.xz |
main/collectd: moved from testing
Diffstat (limited to 'main/collectd/collectd.initd')
-rw-r--r-- | main/collectd/collectd.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/collectd/collectd.initd b/main/collectd/collectd.initd new file mode 100644 index 0000000000..de5705a032 --- /dev/null +++ b/main/collectd/collectd.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript + +DAEMON=/usr/sbin/collectd + +depend() { + need net +} + +start() { + ebegin "Starting collectd" + start-stop-daemon --start --exec $DAEMON -- $collectd_options + eend $? +} + +stop () { + ebegin "Stopping collectd" + start-stop-daemon --stop --exec $DAEMON + eend $? +} + |