--- puppet/modules/gitmirror/templates/on-the-pull.init 2014/02/10 10:07:42 3414 +++ puppet/modules/gitmirror/templates/on-the-pull.init 2014/02/10 10:10:31 3415 @@ -14,12 +14,12 @@ pidfile=/var/run/on-the-pull/on-the-pull.pid prog=/usr/local/bin/on-the-pull -args="--pid-file=$pidfile --user=git --cmd=/usr/local/bin/gitmirror-sync-metadata git://git.mageia.org/ /git" +args="--pid-file=$pidfile --user=git --cmd=/usr/local/bin/gitmirror-sync-metadata git://git.mageia.org /git" start() { gprintf "Starting On-The-Pull Git Mirror Daemon: " - daemon --check on-the-pull --pidfile $pidfile $prog $args >/var/log/on-the-pull.log 2>&1 + daemon --check on-the-pull --pidfile $pidfile "$prog $args >>/var/log/on-the-pull.log 2>&1" RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/on-the-pull @@ -29,6 +29,7 @@ stop() { gprintf "Stopping On-The-Pull Git Mirror Daemon: " killproc -p $pidfile on-the-pull + echo rm -f /var/lock/subsys/on-the-pull }