}
flush_logs() {
- if use_upstart && [ -f /etc/init/syslog-ng.conf ]; then
- checkconfig
- /sbin/initctl reload syslog-ng
- elif [ -x /bin/systemd_booted ] && /bin/systemd_booted; then
- checkconfig
- msg_reloading "syslog-ng"
- /bin/systemctl reload syslog-ng.service
- RETVAL=$?
- [ $RETVAL -eq 0 ] && ok || fail
- elif [ -f /var/lock/subsys/syslog-ng ]; then
+ if [ -f /var/lock/subsys/syslog-ng ]; then
checkconfig
msg_reloading "syslog-ng"
killproc syslog-ng -HUP
fi
}
-upstart_controlled --except checkconfig configtest flush-logs
-
RETVAL=0
# See how we were called.
case "$1" in