aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/gitmirror/templates/on-the-pull.init5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gitmirror/templates/on-the-pull.init b/modules/gitmirror/templates/on-the-pull.init
index 9073508e..74bdcfea 100755
--- a/modules/gitmirror/templates/on-the-pull.init
+++ b/modules/gitmirror/templates/on-the-pull.init
@@ -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 @@ start() {
stop() {
gprintf "Stopping On-The-Pull Git Mirror Daemon: "
killproc -p $pidfile on-the-pull
+ echo
rm -f /var/lock/subsys/on-the-pull
}