瀏覽代碼

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 年之前
父節點
當前提交
1f9a7c6a83
共有 2 個文件被更改,包括 2 次插入1 次删除
  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