mirror of
git://slackware.nl/current.git
synced 2025-01-07 05:25:35 +01:00
93abc85df8
a/sysklogd-2.1.2-x86_64-1.txz: Upgraded. Make sure to move the .new init script and config into place for this. ap/undervolt-20200612_07d0c70-x86_64-1.txz: Added. l/popt-1.18-x86_64-1.txz: Upgraded. x/libglvnd-1.3.2-x86_64-1.txz: Upgraded. x/libva-2.8.0-x86_64-1.txz: Upgraded. x/libva-utils-2.8.0-x86_64-1.txz: Upgraded.
40 lines
672 B
Bash
40 lines
672 B
Bash
#!/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
|