diff options
Diffstat (limited to 'app-admin/metalog/files/metalog.rc6')
-rw-r--r-- | app-admin/metalog/files/metalog.rc6 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-admin/metalog/files/metalog.rc6 b/app-admin/metalog/files/metalog.rc6 new file mode 100644 index 000000000000..006ff28a7750 --- /dev/null +++ b/app-admin/metalog/files/metalog.rc6 @@ -0,0 +1,27 @@ +#!/sbin/runscript + +depend() { + clock +} + +checkconfig() { + if [ ! -e /etc/metalog/metalog.conf ] ; then + eerror "You need an /etc/metalog/metalog.conf file to run metalog" + eerror "There is a sample config file in /usr/share/docs/metalog" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting metalog" + start-stop-daemon --start --quiet --exec /usr/sbin/metalog -- -B + eend $? +} + +stop() { + ebegin "Stopping metalog" + start-stop-daemon --stop --quiet --exec /usr/sbin/metalog + eend $? + # will look into cosmetic error message later..~dd +} |