viewing paste svn-updater | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#!/bin/sh
 
### BEGIN INIT INFO
# Provides:          svn-updater
# Required-Start:    $syslog $local_fs $remote_fs mysql
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
### END INIT INFO
 
test -x "/usr/local/bin/svn-updater" || {
        echo "svn-updater not found"
        exit 1
}
 
case "$1" in
  start)
        echo "Starting svn-updater"
        su neuroselect -c "/usr/local/bin/svn-updater" &
        ;;
  stop)
        echo "Stopping svn-updater"
        killall -u neuroselect
        ;;
  reload|restart|force-reload)
        echo "Stopping svn-updater"
        killall -u neuroselect
        sleep 1
        echo "Starting svn-updater"
        su neuroselect -c "/usr/local/bin/svn-updater" &
        ;;
  *)
        echo "Usage: svn-updater {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac
 
Viewed 706 times, submitted by Guest.