fai-start-stop-daemon

Kovacs Baldvin baldvin at angel.elte.hu
Sun Oct 10 12:14:59 CEST 2004


Hi!

fai-start-stop-daemon should be aware also of the short options,
because there are init scripts (e.g. /etc/init.d/dictd) that do use
them. I've attached a patch. Note that even my version does not use
correct parameter parsing, so grouped short options are not recognized
(I don't need it to do, until I find a package doing that, actually :)).

Best regards,
Baldvin
-------------- next part --------------
--- fai-start-stop-daemon.orig	2003-07-14 22:06:22.000000000 +0200
+++ fai-start-stop-daemon	2004-10-10 11:51:21.000000000 +0200
@@ -29,9 +29,9 @@
 
 for opt in "$@" ; do
     case "$opt" in
-        --oknodo) oknodo=1 ;;
-        --start) start=1 ;;
-        --stop) stop=1 ;;
+        -o|--oknodo) oknodo=1 ;;
+        -S|--start) start=1 ;;
+        -K|--stop) stop=1 ;;
         esac
 done
 


More information about the linux-fai mailing list