2009-09-19 13:28:14 +00:00
|
|
|
#!/sbin/runscript
|
|
|
|
|
2009-12-02 04:50:04 +00:00
|
|
|
pidfile=${PIDFILE}
|
2009-09-19 13:28:14 +00:00
|
|
|
command=/usr/sbin/rsyslogd
|
2009-12-02 04:50:04 +00:00
|
|
|
command_args="${RSYSLOGD_OPTS} -i ${pidfile} -f ${CONFIGFILE}"
|
|
|
|
opts="reload"
|
2009-09-19 13:28:14 +00:00
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
provide logger
|
|
|
|
}
|
2009-12-02 04:50:04 +00: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 $?
|
|
|
|
}
|