Source: racoon Version: 1:0.8.0-9 Severity: wishlist Tags: patch
Here is a patch to support the "status" action in the init.d scripts for racoon and setkey.
--- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ipsec-tools (1:0.8.0-9.1) UNRELEASED; urgency=low + + * Add support for "status" action to init.d scripts + + -- Peter Eisentraut <pet...@debian.org> Sun, 18 Dec 2011 14:05:04 +0200 + ipsec-tools (1:0.8.0-9) unstable; urgency=low * Apply new patchs which enable GNU/kfreebsd build. --- a/debian/ipsec-tools.setkey.init +++ b/debian/ipsec-tools.setkey.init @@ -57,9 +57,12 @@ $0 start echo "done." ;; + status) + exit 0 + ;; *) N=/etc/init.d/$NAME - log_success_msg "Usage: $N {start|stop|restart|force-reload}" >&2 + log_success_msg "Usage: $N {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac --- a/debian/racoon.init +++ b/debian/racoon.init @@ -114,9 +114,12 @@ $0 start ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; *) - log_success_msg "Usage: $0 {start|stop|reload|force-reload|restart}" >&2 + log_success_msg "Usage: $0 {start|stop|reload|force-reload|restart|status}" >&2 exit 1 esac ;;