vp-build/srcpkgs/rsyslog/files/rsyslogd.rc
Juan RP 0bb54ba02b rsyslog: improved rc script, logrotate file from Gentoo. Bumprev.
--HG--
extra : convert_revision : 4d4ebf704061ff320903a47dc9aaf37bd37e4a76
2009-12-02 05:50:04 +01:00

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 $?
}