SOURCES: rc-scripts-makepid.patch (NEW) - rel.2 - makepid functionality to ...
blues
blues at pld-linux.org
Wed Feb 4 21:28:12 CET 2009
Author: blues Date: Wed Feb 4 20:28:12 2009 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- rel.2 - makepid functionality to daemon function
---- Files affected:
SOURCES:
rc-scripts-makepid.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/rc-scripts-makepid.patch
diff -u /dev/null SOURCES/rc-scripts-makepid.patch:1.1
--- /dev/null Wed Feb 4 21:28:13 2009
+++ SOURCES/rc-scripts-makepid.patch Wed Feb 4 21:28:07 2009
@@ -0,0 +1,37 @@
+Index: rc.d/init.d/functions
+===================================================================
+--- rc.d/init.d/functions (wersja 10098)
++++ rc.d/init.d/functions (kopia robocza)
+@@ -497,12 +497,12 @@
+ typeset errors="" prog="" end="" waitname="" waittime=""
+ typeset -i exit_code=0
+ local nice=$SERVICE_RUN_NICE_LEVEL
+- local fork user closefds pidfile chdir=/
++ local fork user closefds pidfile makepid chdir=/
+
+ while [ $# -gt 0 ]; do
+ case $1 in
+ '')
+- msg_usage " daemon [--user user] [--fork] [--waitforname procname] [--waitfortime seconds] [+/-nicelevel] {program} <program args>"
++ msg_usage " daemon [--check] [--user user] [--fork] [--chdir directory] [--closefds] [--waitforname procname] [--waitfortime seconds] [--pidfile file] [--makepid] [+/-nicelevel] {program} <program args>"
+ return 2
+ ;;
+ --check)
+@@ -539,6 +539,9 @@
+ shift
+ pidfile="$1"
+ ;;
++ --makepid)
++ makepid=1
++ ;;
+ -*|+*)
+ nice=$1
+ shift
+@@ -601,6 +604,7 @@
+ ${user:+-c $user} \
+ ${chdir:+--chdir "$chdir"} \
+ ${fork:+-b} \
++ ${makepid:+-m} \
+ --exec "$prog" \
+ -- ${1:+"$@"}
+ else
================================================================
More information about the pld-cvs-commit
mailing list