Guest User

Untitled

a guest
May 16th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/bin/sh
  2. #Start Inspircd
  3.  
  4. INSPIRCD="/home/ircd/inspircd/inspircd"
  5. USER=ircd
  6.  
  7. case "$1" in
  8. 'start')
  9. su $USER -c "$INSPIRCD start"
  10. ;;
  11. 'stop')
  12. su $USER -c "$INSPIRCD stop"
  13. ;;
  14. 'restart')
  15. su $USER -c "$INSPIRCD stop"
  16. su $USER -c "$INSPIRCD start"
  17. ;;
  18. 'force-reload')
  19. su $USER -c "$INSPIRCD rehash"
  20. ;;
  21. *)
  22. echo "Usage: $0 { start | stop | restart | force-reload }"
  23. ;;
  24. esac
  25. exit 0
Add Comment
Please, Sign In to add comment