]> git.pld-linux.org Git - packages/rc-scripts.git/commitdiff
fix daemon --fork uses, patch from pld-rc-scripts mailinglist auto/th/rc-scripts-0.4.15-3
authorElan Ruusamäe <glen@delfi.ee>
Thu, 10 Dec 2015 20:29:40 +0000 (22:29 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 10 Dec 2015 20:29:40 +0000 (22:29 +0200)
rc-scripts-git.patch
rc-scripts.spec

index 4cab90a9bbe6e8988fa6003c31309a223c171784..4b9a2f3be9ebd9b78ebe8250427859b9daef2c88 100644 (file)
@@ -1,8 +1,27 @@
 diff --git a/lib/functions b/lib/functions
-index 8d018f7..501cac9 100644
+index 8d018f7..f9538d2 100644
 --- a/lib/functions
 +++ b/lib/functions
-@@ -1009,7 +1009,7 @@ pidofproc() {
+@@ -690,13 +690,12 @@ _daemon_exec() {
+                       --exec "$prog" \
+                       -- "$@"
+       else
+-
+-              if [ "$makepid" ] && [ "$pidfile" ]; then
+-                      export PIDFILE="$pidfile"
+-                      set -- /lib/rc-scripts/makepid "$@"
+-              fi
+-
+               if [ "$fork" = "1" ]; then
++                      export PIDFILE="/dev/null"
++                      if [ "$makepid" ] && [ "$pidfile" ]; then
++                              export PIDFILE="$pidfile"
++                      fi
++                      set -- /lib/rc-scripts/makepid "$@"
+                       set -- /usr/bin/setsid "$@"
+               fi
+               if [ -n "$user" -a "$user" != "root" ]; then
+@@ -1009,7 +1008,7 @@ pidofproc() {
        fi
  
        # Next try "pidof" if pidfile is not specified
index e45888a3801d997a4cb597f6be1f8bc5a2eb6a26..4aac10ab22c51eb41226ad112356948425c8bac3 100644 (file)
@@ -9,7 +9,7 @@ Summary(pl.UTF-8):      inittab i skrypty startowe z katalogu /etc/rc.d
 Summary(tr.UTF-8):     inittab ve /etc/rc.d dosyaları
 Name:          rc-scripts
 Version:       0.4.15
-Release:       2
+Release:       3
 License:       GPL v2
 Group:         Base
 #Source0:      ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.gz
This page took 0.109708 seconds and 4 git commands to generate.