From 125c37336b5ace85eceffb05e45ce858c12047cd Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 5 Aug 2009 15:45:05 +0200 Subject: [PATCH] Add placeholder functions for start/restart/reload/stop to grml-autoconfig.strace --- debian/changelog | 4 +++- etc/init.d/grml-autoconfig.strace | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 18d765a..4c4a3a7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -39,9 +39,11 @@ grml-autoconfig (0.8.24) unstable; urgency=low * Use invoke-rc.d for starting network instead of invoking the init script directly. * Add LSB header to init script grml-autoconfig.strace. + * Add placeholder functions for start/restart/reload/stop to + grml-autoconfig.strace. * Adjust copyright file (add reference to GPL-2, adjust year). - -- Michael Prokop Wed, 05 Aug 2009 15:42:57 +0200 + -- Michael Prokop Wed, 05 Aug 2009 15:44:41 +0200 grml-autoconfig (0.8.23) unstable; urgency=low diff --git a/etc/init.d/grml-autoconfig.strace b/etc/init.d/grml-autoconfig.strace index fbf4e7e..84a5acb 100755 --- a/etc/init.d/grml-autoconfig.strace +++ b/etc/init.d/grml-autoconfig.strace @@ -16,6 +16,23 @@ # Default-Stop: ### END INIT INFO +# {{{ placeholder functions for start/restart/reload/stop +[[ $1 == "start" ]] && true + +if [[ $1 == "restart" ]] ; then + echo "$0 restart - empty placeholder. Doing nothing but running." +fi + +if [[ $1 == "force-reload" ]] ; then + echo "$0 force-reload - empty placeholder. Doing nothing but running." +fi + +if [[ $1 == "stop" ]] ; then + echo "$0 stop - empty placeholder. Doing nothing but exiting." + exit 1 +fi +# }}} + /usr/bin/strace -f -eopen,stat64,execve -o /etc/grml/strace.autoconfig /etc/init.d/grml-autoconfig "$*" & ## END OF FILE ################################################################# -- 2.1.4