I’ve followed this guide three times, each time I’ve destroyed the droplet and created it again.
Everything is fine unless SoftEther (vpnserver) is not automatically starting after reboot.
Manual start works fine.
How to troubleshoot it?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @omidshojaee,
Have you checked the following sectioN:
If you like SoftEther to start as a service on startup create a file named vpnserver in /etc/init.d directory and change it to the following:
First, create and open the file using vi or nano:
vi /etc/init.d/vpnserver
And paste the following into the file:
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
Finally, save and close the file by pressing ESC and typing :wq to close vim.
We have to make a directory at /var/lock/subsys if one does not exist:
mkdir /var/lock/subsys
Now change the permission for the startup script and start vpnserver using command below:
chmod 755 /etc/init.d/vpnserver && /etc/init.d/vpnserver start
Use the command below make it to run at startup:
Debian / Ubuntu:
update-rc.d vpnserver defaults
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.