Guest User

Untitled

a guest
Jun 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # god Startup script for God.
  4. #
  5. # chkconfig: - 85 15
  6. # description: Run god that starts and monitors all Winnow processes
  7. #
  8.  
  9. CONF=/etc/god.conf
  10. RETVAL=0
  11.  
  12. # Go no further if config directory is missing.
  13. [ -f "$CONF" ] || exit 0
  14.  
  15. case "$1" in
  16. start)
  17. /usr/local/bin/god -c $CONF -l /var/log/god.log -P /var/run/god.pid --no-syslog
  18. RETVAL=$?
  19. ;;
  20. stop)
  21. /usr/local/bin/god quit
  22. RETVAL=$?
  23. ;;
  24. restart)
  25. /usr/local/bin/god quit
  26. /usr/local/bin/god -c $CONF -l /var/log/god.log -P /var/run/god.pid --no-syslog
  27. RETVAL=$?
  28. ;;
  29. *)
  30. echo "Usage: god {start|stop|restart}"
  31. exit 1
  32. ;;
  33. esac
  34.  
  35. exit $RETVAL
Add Comment
Please, Sign In to add comment