[Fai-commit] r4004 - trunk/bin
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Fri Sep 22 09:41:25 UTC 2006
Author: lange
Date: 2006-09-22 09:41:24 +0000 (Fri, 22 Sep 2006)
New Revision: 4004
Modified:
trunk/bin/fai-start-stop-daemon
Log:
print daemon name for which fai-start-stop-daemon is called
Modified: trunk/bin/fai-start-stop-daemon
===================================================================
--- trunk/bin/fai-start-stop-daemon 2006-09-21 15:48:17 UTC (rev 4003)
+++ trunk/bin/fai-start-stop-daemon 2006-09-22 09:41:24 UTC (rev 4004)
@@ -6,7 +6,7 @@
# start-stop-daemon -- a version which never starts daemons
#
# This script is part of FAI (Fully Automatic Installation)
-# (c) 2000-2004 by Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2000-2006 by Thomas Lange, lange at informatik.uni-koeln.de
# Universitaet zu Koeln
#
#*********************************************************************
@@ -27,14 +27,16 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#*********************************************************************
-echo 'Warning: Dummy start-stop-daemon called, doing nothing.'
-for opt in "$@" ; do
- case "$opt" in
+while [ $# -gt 0 ]; do
+ case $1 in
+ -x|--exec) shift; prog="for $1" ;;
-o|--oknodo) oknodo=1 ;;
-S|--start) start=1 ;;
-K|--stop) stop=1 ;;
esac
+ shift
done
+echo "Warning: Dummy start-stop-daemon called $prog. Doing nothing."
[ -n "$stop" -a -z "$oknodo" ] && exit 1
More information about the Fai-commit
mailing list