0bb54ba02b
--HG-- extra : convert_revision : 4d4ebf704061ff320903a47dc9aaf37bd37e4a76
23 lines
408 B
Text
23 lines
408 B
Text
#!/sbin/runscript
|
|
|
|
pidfile=${PIDFILE}
|
|
command=/usr/sbin/rsyslogd
|
|
command_args="${RSYSLOGD_OPTS} -i ${pidfile} -f ${CONFIGFILE}"
|
|
opts="reload"
|
|
|
|
depend()
|
|
{
|
|
provide logger
|
|
}
|
|
|
|
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 $?
|
|
}
|