소스 검색

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