daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest May 16th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top