]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-makepid.patch
- udev > 124 is too unstable for Titanium
[packages/rc-scripts.git] / rc-scripts-makepid.patch
1 Index: rc.d/init.d/functions
2 ===================================================================
3 --- rc.d/init.d/functions       (wersja 10098)
4 +++ rc.d/init.d/functions       (kopia robocza)
5 @@ -497,12 +497,12 @@
6         typeset errors="" prog="" end="" waitname="" waittime=""
7         typeset -i exit_code=0
8         local nice=$SERVICE_RUN_NICE_LEVEL
9 -       local fork user closefds pidfile chdir=/
10 +       local fork user closefds pidfile makepid chdir=/
11  
12         while [ $# -gt 0 ]; do
13                 case $1 in
14                 '')
15 -                       msg_usage " daemon [--user user] [--fork] [--waitforname procname] [--waitfortime seconds] [+/-nicelevel] {program} <program args>"
16 +               msg_usage " daemon [--check] [--user user] [--fork] [--chdir directory] [--closefds] [--waitforname procname] [--waitfortime seconds] [--pidfile file] [--makepid] [+/-nicelevel] {program} <program args>"
17                         return 2
18                         ;;
19                 --check)
20 @@ -539,6 +539,9 @@
21                         shift
22                         pidfile="$1"
23                         ;;
24 +               --makepid)
25 +                       makepid=1
26 +                       ;;
27                 -*|+*)
28                         nice=$1
29                         shift
30 @@ -601,6 +604,7 @@
31                                 ${user:+-c $user} \
32                                 ${chdir:+--chdir "$chdir"} \
33                                 ${fork:+-b} \
34 +                               ${makepid:+-m} \
35                                 --exec "$prog" \
36                                 -- ${1:+"$@"}
37                 else
This page took 0.061815 seconds and 3 git commands to generate.