Package: syslog-ng Version: 3.2.4-1 Severity: wishlist Tags: patch
Attached is a patch that adds support for the "status" action to the init script. (I adapted the example from /etc/init.d/skeleton; feel free to alter the style to your liking.)
diff -Nru syslog-ng-3.2.4/debian/changelog syslog-ng-3.2.4/debian/changelog --- syslog-ng-3.2.4/debian/changelog 2011-05-17 08:01:33.000000000 +0300 +++ syslog-ng-3.2.4/debian/changelog 2011-10-06 06:46:22.000000000 +0300 @@ -1,3 +1,9 @@ +syslog-ng (3.2.4-1.1) UNRELEASED; urgency=low + + * Add support for init.d "status" action. + + -- Peter Eisentraut <pet...@debian.org> Thu, 06 Oct 2011 06:45:58 +0300 + syslog-ng (3.2.4-1) unstable; urgency=high * New upstream release, fixing infinite loop via PCRE and global. No CVE diff -Nru syslog-ng-3.2.4/debian/syslog-ng.init syslog-ng-3.2.4/debian/syslog-ng.init --- syslog-ng-3.2.4/debian/syslog-ng.init 2010-11-04 20:15:31.000000000 +0200 +++ syslog-ng-3.2.4/debian/syslog-ng.init 2011-10-06 06:45:16.000000000 +0300 @@ -118,8 +118,11 @@ sleep 1 syslogng_start || exit 1 ;; + status) + status_of_proc "$SYSLOGNG" "$NAME" && exit 0 || exit $? + ;; *) - echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac