blob: 5d471d89069cb84387fff8cbe5cd183ba8a1e1ef (
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
36
37
38
39
|
#!/sbin/runscript
# Copyright 1999-2003 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.5 2003/05/12 16:02:15 mholzer 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 klogd, syslogd"
start-stop-daemon --stop --retry 1 --quiet --pidfile /var/run/klogd.pid
retval=$?
start-stop-daemon --stop --retry 1 --quiet --pidfile /var/run/syslogd.pid
retval=$(( ${retval} + $? ))
eend ${retval} "Failed to stop klogd, syslogd"
}
|