SoftEtherの起動用スクリプト(Ubuntu 14.04)です。
いつも/opt/softetherにコピーして下記スクリプトを使っています。
/etc/init.d/softether
# ! /bin/sh
### BEGIN INIT INFO
# Provides: softeather
# Required-Start: $network
# Required-Stop:
# Should-Start:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description:
# Description:
### END INIT INFO
BIN=vpnbridge
PATH=/opt/softether/
case "$1" in
start)
cd ${PATH}
./${BIN} start
;;
stop)
cd ${PATH}
./${BIN} stop
;;
*)
echo "Usage: softether {start|stop}" >&2
exit 1
;;
esac
exit 0
起動設定は下記のコマンドで
sudo update-rc.d softether defaults