summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-03-11 22:42:07 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-03-11 22:42:07 +0000
commitd2acfb924b2be43d477a2346f3168e35b81bcc8b (patch)
tree321daf79e34e7d546c01979829975fd75f443960 /app-admin/metalog
parentadd logger provide (diff)
downloadgentoo-2-d2acfb924b2be43d477a2346f3168e35b81bcc8b.tar.gz
gentoo-2-d2acfb924b2be43d477a2346f3168e35b81bcc8b.tar.bz2
gentoo-2-d2acfb924b2be43d477a2346f3168e35b81bcc8b.zip
add nicer fail messages
Diffstat (limited to 'app-admin/metalog')
-rw-r--r--app-admin/metalog/files/metalog.rc610
1 files changed, 7 insertions, 3 deletions
diff --git a/app-admin/metalog/files/metalog.rc6 b/app-admin/metalog/files/metalog.rc6
index 1144f0b9bcc7..e06437974df8 100644
--- a/app-admin/metalog/files/metalog.rc6
+++ b/app-admin/metalog/files/metalog.rc6
@@ -1,7 +1,10 @@
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/files/metalog.rc6,v 1.6 2002/03/11 22:30:15 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/files/metalog.rc6,v 1.7 2002/03/11 22:42:07 azarah Exp $
+
+# NB: Config is in /etc/conf.d/metalog
+
depend() {
need clock
@@ -12,11 +15,12 @@ start() {
ebegin "Starting metalog"
start-stop-daemon --start --quiet --exec /usr/sbin/metalog \
-- -p /var/run/metalog.pid ${METALOG_OPTS}
- eend $?
+ eend $? "Failed to start metalog"
}
stop() {
ebegin "Stopping metalog"
start-stop-daemon --stop --quiet --pidfile /var/run/metalog.pid
- eend $?
+ eend $? "Failed to stop metalog"
}
+