Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #Start Inspircd
- INSPIRCD="/home/ircd/inspircd/inspircd"
- USER=ircd
- case "$1" in
- 'start')
- su $USER -c "$INSPIRCD start"
- ;;
- 'stop')
- su $USER -c "$INSPIRCD stop"
- ;;
- 'restart')
- su $USER -c "$INSPIRCD stop"
- su $USER -c "$INSPIRCD start"
- ;;
- 'force-reload')
- su $USER -c "$INSPIRCD rehash"
- ;;
- *)
- echo "Usage: $0 { start | stop | restart | force-reload }"
- ;;
- esac
- exit 0
Add Comment
Please, Sign In to add comment