0bb54ba02b
--HG-- extra : convert_revision : 4d4ebf704061ff320903a47dc9aaf37bd37e4a76
24 lines
408 B
Plaintext
24 lines
408 B
Plaintext
#!/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 $?
|
|
}
|