2009-09-19 15:28:14 +02:00
|
|
|
#!/sbin/runscript
|
|
|
|
|
2009-12-02 05:50:04 +01:00
|
|
|
pidfile=${PIDFILE}
|
2009-09-19 15:28:14 +02:00
|
|
|
command=/usr/sbin/rsyslogd
|
2009-12-02 05:50:04 +01:00
|
|
|
command_args="${RSYSLOGD_OPTS} -i ${pidfile} -f ${CONFIGFILE}"
|
|
|
|
opts="reload"
|
2009-09-19 15:28:14 +02:00
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
provide logger
|
|
|
|
}
|
2009-12-02 05:50:04 +01:00
|
|
|
|
|
|
|
reload()
|
|
|
|
{
|
|
|
|
if [ ! -f "${PIDFILE}" ]; then
|
|
|
|
eerror "rsyslogd not running"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
ebegin "Reloading configuration and re-opening log files"
|
|
|
|
start-stop-daemon --stop --oknodo --signal HUP \
|
|
|
|
--pidfile "${PIDFILE}"
|
|
|
|
eend $?
|
|
|
|
}
|