summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2001-09-04 02:19:23 +0000
committerDonny Davies <woodchip@gentoo.org>2001-09-04 02:19:23 +0000
commit536f58819de7c95ce0405621a0793da959f0dbc4 (patch)
treeff941b91097cd6cf2c85b3c15d7f3e38f092b104 /app-admin/metalog/files
parentmetalog updated (diff)
downloadgentoo-2-536f58819de7c95ce0405621a0793da959f0dbc4.tar.gz
gentoo-2-536f58819de7c95ce0405621a0793da959f0dbc4.tar.bz2
gentoo-2-536f58819de7c95ce0405621a0793da959f0dbc4.zip
Wow. Didnt notice this *very* cool logger before.. I think I just
found my next logging daemon. Has regexp support and stuff. Im glad I got to take a look at this.. neato. :>~ Note that I removed the "-s" option from the initscript, this stuff is better left up to the admin of the box. Synchronous mode could be detrimental to performance on a loaded machine.. I think we'd agree that the distribution need not dictate policy. We *should* provide a solid init *system*.. which is all the competent admin needs. ;) I honestly feel that users are just better off pointed to the docs, rather have having a configured system decided upon for them.
Diffstat (limited to 'app-admin/metalog/files')
-rw-r--r--[-rwxr-xr-x]app-admin/metalog/files/metalog.rc5 (renamed from app-admin/metalog/files/metalog)0
-rw-r--r--app-admin/metalog/files/metalog.rc627
2 files changed, 27 insertions, 0 deletions
diff --git a/app-admin/metalog/files/metalog b/app-admin/metalog/files/metalog.rc5
index 883c0b2154f4..883c0b2154f4 100755..100644
--- a/app-admin/metalog/files/metalog
+++ b/app-admin/metalog/files/metalog.rc5
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
+}