diff options
author | Grant Goodyear <g2boojum@gentoo.org> | 2002-09-23 00:33:03 +0000 |
---|---|---|
committer | Grant Goodyear <g2boojum@gentoo.org> | 2002-09-23 00:33:03 +0000 |
commit | 4a55580cf074586e91c47470003cd4348746ef9c (patch) | |
tree | e0d54f302ae074cbca44f636f6b4d0b4cab504e8 /app-admin | |
parent | Adding files. Oops. (diff) | |
download | gentoo-2-4a55580cf074586e91c47470003cd4348746ef9c.tar.gz gentoo-2-4a55580cf074586e91c47470003cd4348746ef9c.tar.bz2 gentoo-2-4a55580cf074586e91c47470003cd4348746ef9c.zip |
If at first you don't succeed. . ..
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/sysklogd/files/sysklogd.confd | 6 | ||||
-rw-r--r-- | app-admin/sysklogd/files/sysklogd.rc6 | 35 |
2 files changed, 41 insertions, 0 deletions
diff --git a/app-admin/sysklogd/files/sysklogd.confd b/app-admin/sysklogd/files/sysklogd.confd new file mode 100644 index 000000000000..c9735739117d --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd.confd @@ -0,0 +1,6 @@ +# Config file for /etc/init.d/sysklogd + +SYSLOGD="-m 0" +# send warnings and above to the console +KLOGD="-c 3 -2" + diff --git a/app-admin/sysklogd/files/sysklogd.rc6 b/app-admin/sysklogd/files/sysklogd.rc6 new file mode 100644 index 000000000000..419d09149901 --- /dev/null +++ b/app-admin/sysklogd/files/sysklogd.rc6 @@ -0,0 +1,35 @@ +#!/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/sysklogd/files/sysklogd.rc6,v 1.1 2002/09/23 00:33:03 g2boojum Exp $ + +# NB: Config is in /etc/conf.d/sysklogd + + +depend() { + need hostname + provide logger +} + +start() { + + ebegin "Starting syslogd, klogd" + start-stop-daemon --start --quiet --exec /usr/sbin/syslogd -- ${SYSLOGD} + retval=$? + # klogd do not always start proper if started too early + sleep 2 + start-stop-daemon --start --quiet --exec /usr/sbin/klogd -- ${KLOGD} + retval=$(( ${retval} + $? )) + eend ${retval} "Failed to start syslogd, klogd" +} + +stop() { + + ebegin "Stopping klogd, syslogd" + start-stop-daemon --stop --quiet --pidfile /var/run/klogd.pid + retval=$? + start-stop-daemon --stop --quiet --pidfile /var/run/syslogd.pid + retval=$(( ${retval} + $? )) + eend ${retval} "Failed to stop klogd, syslogd" +} + |