diff options
Diffstat (limited to 'net-misc/cfengine/files/cf-monitord.rc6')
-rwxr-xr-x | net-misc/cfengine/files/cf-monitord.rc6 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-misc/cfengine/files/cf-monitord.rc6 b/net-misc/cfengine/files/cf-monitord.rc6 new file mode 100755 index 000000000000..27ef2c26fc82 --- /dev/null +++ b/net-misc/cfengine/files/cf-monitord.rc6 @@ -0,0 +1,17 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting cf-monitord" + start-stop-daemon --start --exec /usr/sbin/cf-monitord -- ${EXTRA_OPTS} + eend $? +} + +stop() { + ebegin "Stopping cf-monitord" + start-stop-daemon --stop --pidfile /var/cfengine/cf-monitord.pid --exec /usr/sbin/cf-monitord + eend $? +} |