Code: Select all
sudo nano /etc/systemd/system/vpnserver.service
Code: Select all
[Unit]
Description=SoftEther VPN Server
After=network.target network-online.target
[Service]
ExecStart=/usr/local/vpnserver/vpnserver start
ExecStop=/usr/local/vpnserver/vpnserver stop
Type=simple
[Install]
WantedBy=multi-user.target
Code: Select all
sudo systemctl enable vpnserver.service
Code: Select all
sudo systemctl status vpnserver.service
Code: Select all
Loaded: loaded (/etc/systemd/system/vpnserver.service; enabled; vendor preset: enabled)
Active: inactive (dead) since 水 2019-05-22 14:47:02 JST; 3s ago
Process: 2614 ExecStop=/usr/local/vpnserver/vpnserver stop (code=exited, status=0/SUCCESS)
Process: 2608 ExecStart=/usr/local/vpnserver/vpnserver start (code=exited, status=0/SUCCESS)
Main PID: 2608 (code=exited, status=0/SUCCESS)
5月 22 14:47:02 systemd[1]: Started Softether VPN Server Service.
5月 22 14:47:02 vpnserver[2608]: The SoftEther VPN Server service has been started.
5月 22 14:47:02 vpnserver[2614]: Stopping the SoftEther VPN Server service ...
5月 22 14:47:02 vpnserver[2614]: SoftEther VPN Server service has been stopped.
Code: Select all
./vpnserver start
設定等による解決方法を教えてください。よろしくお願いいたします。