blob: a802ec38a2592e2ae2f4ca3a412d7cc212cad8a4 (
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
40
|
#!/bin/sh
# Start/stop/restart the system logging daemon.
#
# Written for Slackware Linux by Patrick J. Volkerding <volkerdi@slackware.com>.
# Source default settings:
if [ -r /etc/default/syslogd ]; then
. /etc/default/syslogd
fi
syslogd_start() {
if [ -x /usr/sbin/syslogd ]; then
echo -n "Starting syslogd daemon: /usr/sbin/syslogd ${SYSLOGD_OPTS}"
/usr/sbin/syslogd $SYSLOGD_OPTS
fi
}
syslogd_stop() {
killall syslogd 2> /dev/null
}
syslogd_restart() {
syslogd_stop
sleep 1
syslogd_start
}
case "$1" in
'start')
syslogd_start
;;
'stop')
syslogd_stop
;;
'restart')
syslogd_restart
;;
*)
echo "usage $0 start|stop|restart"
esac
|