slackware-current/source/a/sysklogd/config/rc.syslog.new
Patrick J Volkerding 93abc85df8 Fri Jun 26 19:18:25 UTC 2020
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.
2020-06-27 08:59:53 +02:00

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