0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Softether起動用スクリプト

0
Posted at

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?