diff options
author | Colin Guthrie <colin@mageia.org> | 2014-02-10 10:10:31 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-02-10 10:10:31 +0000 |
commit | b4dd2858fba059724675c85bf0d401bc5b2bcd4e (patch) | |
tree | 76b35842830bf93a3b8f6f3760a3b311c12d1adc /modules | |
parent | 7a949b88d7d60e0d2f166f14b8d7dd7d017d9332 (diff) | |
download | puppet-b4dd2858fba059724675c85bf0d401bc5b2bcd4e.tar puppet-b4dd2858fba059724675c85bf0d401bc5b2bcd4e.tar.gz puppet-b4dd2858fba059724675c85bf0d401bc5b2bcd4e.tar.bz2 puppet-b4dd2858fba059724675c85bf0d401bc5b2bcd4e.tar.xz puppet-b4dd2858fba059724675c85bf0d401bc5b2bcd4e.zip |
gitmirror: Fix base URL for cloning.
Also some cosmetic changes to logging and stopping.
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/gitmirror/templates/on-the-pull.init | 5 |
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 } |