summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Alexandratos <jerry@gentoo.org>2001-07-11 06:45:34 +0000
committerJerry Alexandratos <jerry@gentoo.org>2001-07-11 06:45:34 +0000
commite93fbcb7629b1119dc8bd8ca02753059b2bbeb90 (patch)
tree07763f2a44df34f4813c46039c0c772b2d8f019b /app-admin/metalog/files
parentTypo fix. (diff)
downloadgentoo-2-e93fbcb7629b1119dc8bd8ca02753059b2bbeb90.tar.gz
gentoo-2-e93fbcb7629b1119dc8bd8ca02753059b2bbeb90.tar.bz2
gentoo-2-e93fbcb7629b1119dc8bd8ca02753059b2bbeb90.zip
Initial import of metalog into the portage tree.
This is for people who want something a little more robust than the traditional syslogd/klogd gluelog/multilog combos.
Diffstat (limited to 'app-admin/metalog/files')
-rw-r--r--app-admin/metalog/files/digest-metalog-0.61
-rwxr-xr-xapp-admin/metalog/files/metalog28
2 files changed, 29 insertions, 0 deletions
diff --git a/app-admin/metalog/files/digest-metalog-0.6 b/app-admin/metalog/files/digest-metalog-0.6
new file mode 100644
index 000000000000..a838f1da82f0
--- /dev/null
+++ b/app-admin/metalog/files/digest-metalog-0.6
@@ -0,0 +1 @@
+MD5 67cdfc65a8820db7a6bdd35995dd9889 metalog-0.6.tar.gz
diff --git a/app-admin/metalog/files/metalog b/app-admin/metalog/files/metalog
new file mode 100755
index 000000000000..883c0b2154f4
--- /dev/null
+++ b/app-admin/metalog/files/metalog
@@ -0,0 +1,28 @@
+#!/bin/sh
+#RCUPDATE:1 2 3 4 5:19:This line is required for script management
+
+. /etc/rc.d/config/functions
+
+SERVICE=metalog
+opts="start stop restart"
+
+EXE=/usr/sbin/metalog
+
+start() {
+ ebegin "Starting $SERVICE..."
+ start-stop-daemon --start --quiet --exec $EXE -- -B -s
+ eend $? "Started $SERVICE." "Error Starting $SERVICE."
+}
+
+stop() {
+ ebegin "Stopping $SERVICE..."
+ start-stop-daemon --stop --quiet --exec $EXE
+ eend $? "Stopped $SERVICE." "Error Stopping $SERVICE."
+}
+
+restart() {
+ stop
+ start
+}
+
+doservice ${@}