blob: fdb73c3a34892e644e3b1b9337a0a8d015a92adc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/sysklogd/files/sysklogd.rc6,v 1.7 2004/02/13 19:08:43 vapier Exp $
# NB: Config is in /etc/conf.d/sysklogd
depend() {
need clock hostname
provide logger
}
start() {
ebegin "Starting syslogd, klogd"
start-stop-daemon --start --quiet --background --exec /usr/sbin/syslogd \
-- ${SYSLOGD}
retval=$?
# klogd do not always start proper if started too early
sleep 1
start-stop-daemon --start --quiet --exec /usr/sbin/klogd \
-- ${KLOGD}
retval=$(( ${retval} + $? ))
eend ${retval} "Failed to start syslogd, klogd"
}
stop() {
ebegin "Stopping syslogd, klogd"
start-stop-daemon --stop --retry 1 --quiet --pidfile /var/run/syslogd.pid
retval=$?
start-stop-daemon --stop --retry 1 --quiet --pidfile /var/run/klogd.pid
retval=$(( ${retval} + $? ))
eend ${retval} "Failed to stop klogd, syslogd"
}
|