News:

SMF - Just Installed!

Main Menu

`systemctl start SERVICE` does not start all of SERVICE@*

Started by mahesh, Oct 06, 2023, 06:35 AM

Previous topic - Next topic

mahesh

When I run `systemctl start openvpn` the `openvpn@server_tap` starts.

But I created another server config `/etc/openvpn/server_tun` and another service `/etc/systemd/system/multi-user.target.wants/openvpn@server_tun.service` (copied from `openvpn@server_tap.service`) and this service does not start with `systemctl start openvpn`. I start it manually with `systemctl start openvpn@server_tun`.

But when I run `systemctl stop openvpn`, both of them stop!

I am not very familiar with systemd.
Did not `openvpn.service` start all of `openvpn@*.service` variants created from me?
What is wrong?
How can I do this?