From 0869705c58765609fb8a46d4340b3c739ceff8ad Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 14 Jul 2015 20:24:03 +0000 Subject: [PATCH] - drop upstart/systemd code --- syslog-ng.init | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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 -- 2.46.0