From b4dd2858fba059724675c85bf0d401bc5b2bcd4e Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 10 Feb 2014 10:10:31 +0000 Subject: gitmirror: Fix base URL for cloning. Also some cosmetic changes to logging and stopping. --- modules/gitmirror/templates/on-the-pull.init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules') 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 } -- cgit v1.2.1