Skip to content

Instantly share code, notes, and snippets.

@SimonTart
Created March 29, 2018 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SimonTart/ee55709b8b2fa8bc0fa267ebd71ff5cd to your computer and use it in GitHub Desktop.
Save SimonTart/ee55709b8b2fa8bc0fa267ebd71ff5cd to your computer and use it in GitHub Desktop.
kcp
#!/bin/bash
### BEGIN INIT INFO
# Provides: kcptun
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
case "$1" in
start)
/root/kcptun/start.sh
;;
stop)
/root/kcptun/stop.sh
;;
restart)
/root/kcptun/restart.sh
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment