http://bugzilla.opensuse.org/show_bug.cgi?id=960298
http://bugzilla.opensuse.org/show_bug.cgi?id=960298#c3
Christian Boltz changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags|needinfo?(suse-beta@cboltz. |
|de) |
--- Comment #3 from Christian Boltz ---
Displaying an input box if the service name ends with "@" is a "non-trivial
feature request"? Seriously?
Since I had written a more verbose explanation before you posted your last
comment, let me post it nevertheless - maybe someone can learn something from
it ;-)
To make the problem clear: openvpn@ is a so-called "Instantiated Services"),
which you can't use directly (but YaST tries to):
# systemctl enable openvpn@.service
Failed to execute operation: Unit name openvpn@.service is not valid.
It's not surprising that systemctl errors out - you _have to_ specify an
instance name after the "@". This name will typically be used to determinate
the config file name (look for %i in the service file).
This means you have to use something like (note the added "myserver" after the
"@"):
# systemctl enable openvpn@myserver.service
It's also possible to have more openvpn instances in parallel, like
# systemctl enable openvpn@myserver.service
# systemctl enable openvpn@cheapvpnprovider.service
# systemctl enable openvpn@geeko.service
(all those commands succeed.)
This all means:
*** If the user wants to start or enable "openvpn@", YaST will need to display
*** an input box where users can enter "myserver" or whatever config name they
*** want to use.
In theory this also applies to stop and disable, however this will never happen
in practise because "openvpn@" can never be running or enabled - only something
like "openvpn@myserver" can. (On the positive side, YaST will display
"openvpn@myserver" in the service list as soon as it's running or enabled, so
users can disable or stop it.)
FIY: In the service file, it looks like this:
# systemctl cat openvpn@.service
[...]
ExecStart=/usr/sbin/openvpn --daemon --suppress-timestamps
--writepid /run/openvpn/%i.pid --cd /etc/openvpn/
--config %i.conf
%i gets replaced by "myserver" for openvpn@myserver.service or by "geeko" for
openvpn@geeko.service.
If you are interested on the systemd documentation about Instantiated Services,
see http://0pointer.de/blog/projects/instances.html
That all said - I opened https://features.opensuse.org/320260
--
You are receiving this mail because:
You are on the CC list for the bug.