Guest User

Untitled

a guest
Apr 26th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. test -f /etc/default/god && . /etc/default/god
  2. [ $GOD_CONFIG ] || exit 0
  3.  
  4. . /lib/lsb/init-functions
  5.  
  6. RETVAL=0
  7.  
  8. case "$1" in
  9. start)
  10. echo -n "Starting $DESC: "
  11. /usr/bin/god -c $GOD_CONFIG -P /var/run/god.pid -l /var/log/god.log
  12. RETVAL=$?
  13. echo "$NAME."
  14. ;;
  15. stop)
  16. echo -n "Stopping $DESC: "
  17. kill `cat /var/run/god.pid`
  18. RETVAL=$?
  19. echo "$NAME."
  20. ;;
  21. restart)
  22. echo -n "Restarting $DESC: "
  23. kill `cat /var/run/god.pid`
  24. /usr/bin/god -c $GOD_CONFIG -P /var/run/god.pid -l /var/log/god.log
  25. RETVAL=$?
  26. echo "$NAME."
  27. ;;
  28. status)
  29. /usr/bin/god status
  30. RETVAL=$?
  31. ;;
  32. *)
  33. echo "Usage: god {start|stop|restart|status}"
  34. exit 1
  35. ;;
  36. esac
  37.  
  38. exit $RETVAL
Add Comment
Please, Sign In to add comment