/[adm]/puppet/modules/gitmirror/templates/on-the-pull.init
ViewVC logotype

Diff of /puppet/modules/gitmirror/templates/on-the-pull.init

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3414 by colin, Mon Feb 10 09:04:25 2014 UTC revision 3415 by colin, Mon Feb 10 10:10:31 2014 UTC
# Line 14  Line 14 
14    
15  pidfile=/var/run/on-the-pull/on-the-pull.pid  pidfile=/var/run/on-the-pull/on-the-pull.pid
16  prog=/usr/local/bin/on-the-pull  prog=/usr/local/bin/on-the-pull
17  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"
18    
19    
20  start() {  start() {
21          gprintf "Starting On-The-Pull Git Mirror Daemon: "          gprintf "Starting On-The-Pull Git Mirror Daemon: "
22          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"
23          RETVAL=$?          RETVAL=$?
24          echo          echo
25          [ $RETVAL -eq 0 ] && touch /var/lock/subsys/on-the-pull          [ $RETVAL -eq 0 ] && touch /var/lock/subsys/on-the-pull
# Line 29  start() { Line 29  start() {
29  stop() {  stop() {
30          gprintf "Stopping On-The-Pull Git Mirror Daemon: "          gprintf "Stopping On-The-Pull Git Mirror Daemon: "
31          killproc -p $pidfile on-the-pull          killproc -p $pidfile on-the-pull
32            echo
33          rm -f /var/lock/subsys/on-the-pull          rm -f /var/lock/subsys/on-the-pull
34  }  }
35    

Legend:
Removed from v.3414  
changed lines
  Added in v.3415

  ViewVC Help
Powered by ViewVC 1.1.26