From: Marcin Krol Date: Tue, 14 Jul 2015 20:24:03 +0000 (+0000) Subject: - drop upstart/systemd code X-Git-Url: https://git.tld-linux.org/?p=packages%2Fsyslog-ng.git;a=commitdiff_plain;h=0869705c58765609fb8a46d4340b3c739ceff8ad - drop upstart/systemd code --- diff --git a/syslog-ng.init b/syslog-ng.init index 5dd2639..9b895a7 100755 --- a/syslog-ng.init +++ b/syslog-ng.init @@ -106,16 +106,7 @@ reload() { } 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 @@ -126,8 +117,6 @@ flush_logs() { fi } -upstart_controlled --except checkconfig configtest flush-logs - RETVAL=0 # See how we were called. case "$1" in