Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
-
sergey113
- Posts: 18
- Joined: Fri Dec 25, 2015 3:44 pm
Post
by sergey113 » Sat Oct 23, 2021 10:48 pm
Hi
How do I set up vpnservice autorun in debian 10?
I read the wiki. Created a script in
, launched
.
But the service does not start when the OS starts.
Works.
does not work.
-
solo
- Posts: 1263
- Joined: Sun Feb 14, 2021 10:31 am
Post
by solo » Mon Oct 25, 2021 10:49 pm
On my Linux Mint Iauto-start SE with...
Code: Select all
cat >> /lib/systemd/system/vpnserver.service << EOF
[Unit]
Description=SoftEther VPN Server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/vpnserver/vpnserver start
ExecStop=/usr/local/vpnserver/vpnserver stop
[Install]
WantedBy=multi-user.target
EOF
and:
systemctl enable vpnserver
As Linux Mint is derived from Ubuntu which is derived from Debian, it should work for you too.
-
PH-IT
- Posts: 26
- Joined: Tue Jan 18, 2022 9:47 am
-
Contact:
Post
by PH-IT » Thu Jan 20, 2022 10:38 pm
# nano /lib/systemd/system/vpnserver.service
[Unit]
Description=SoftEther VPN Server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/vpnserver/vpnserver start
ExecStop=/usr/local/vpnserver/vpnserver stop
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
# systemctl enable vpnserver.service <---- you have to enable it
-
sergey113
- Posts: 18
- Joined: Fri Dec 25, 2015 3:44 pm
Post
by sergey113 » Sun Nov 06, 2022 6:29 pm
Thanks very much!!!
It`s work too.
create file (as root user)
nano /lib/systemd/system/vpnserver.service
with
-->>
### BEGIN INIT INFO
# Provides: vpnserver
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: VPN vpnserver
# Description: Service VPN vpnserver
### END INIT INFO
[Unit]
Description=SoftEther VPN Server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/vpnserver/vpnserver start
ExecStop=/usr/local/vpnserver/vpnserver stop
[Install]
WantedBy=multi-user.target
-->>