]> TLD Linux GIT Repositories - packages/syslog-ng.git/commitdiff
- drop upstart/systemd code
authorMarcin Krol <hawk@tld-linux.org>
Tue, 14 Jul 2015 20:24:03 +0000 (20:24 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 14 Jul 2015 20:24:03 +0000 (20:24 +0000)
syslog-ng.init

index 5dd26392ecd3c7190b813f6ba1aec7f183e3b2b3..9b895a702b43fa129f98dd011262f12963cf3166 100755 (executable)
@@ -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