S
S
slden2019-04-05 04:47:21
linux
slden, 2019-04-05 04:47:21

How to configure SoftEther VPN Server autostart via systemd?

Created a systemd unit

[Unit]
Description=SoftEther VPN Server
After=network.target

[Service]
Type=forking
ExecStart=/opt/vpnserver/vpnserver start
ExecStop=/opt/vpnserver/vpnserver stop

[Install]
WantedBy=multi-user.target

I put it in /etc/systemd/system
I get an error on the output
innserv: warning: script missing LSB tags
Problem in LSB tags? Where should I write them down?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Georg Gaal, 2019-04-07
@slden

I would do it like this: I stupidly stole a unit file from the Internet, and did not write it from scratch.
It is also very good to write on what operating system the action takes place, because. systemd distributions to hell.
As for the root cause, I still assume that something is missing in the environment. As opposed to running through the user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question