blob: 99740387c4b0d31f07bb30d237e901c6d601bbb7 (
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-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.2 2002/11/04 14:28:25 azarah 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 --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"
}
|