Sfoglia il codice sorgente

remove PID file (after we know that the PID is no longer existing) as rsync daemon dislikes to startup if an old PID file is still staying around

Ralf S. Engelschall 17 anni fa
parent
commit
1f9a7c6a83
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      rsync/rc.rsync
  2. 1 1
      rsync/rsync.spec

+ 1 - 0
rsync/rc.rsync

@@ -35,6 +35,7 @@
     rcService rsync enable yes || exit 0
     rcService rsync active yes && exit 0
     rcVarIsYes rsync_daemon || exit 0
+    rm -f $rsync_pidfile 2>/dev/null || true
     nice -n $rsync_nice @l_prefix@/bin/rsync \
          $rsync_flags --daemon --config=$rsync_cfgfile
     sleep 2

+ 1 - 1
rsync/rsync.spec

@@ -32,7 +32,7 @@ Class:        CORE
 Group:        Filesystem
 License:      GPL
 Version:      3.0.3
-Release:      20080630
+Release:      20080719
 
 #   package options
 %option       with_iconv  no