Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #224960
| From | Richard Hector <richard@walnut.gen.nz> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | systemd and non-existent service instances |
| Date | 2020-07-19 11:30 +0200 |
| Message-ID | <AudNT-4wI-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hi all, I'm running into a problem with systemd and my openvpn instances. To start a vpn, I run 'systemctl start openvpn-client@foo_host2' or similar. That has to be an underscore, because as far as I can see, using a hyphen/dash will break the instance mechanism. Of course, the actual hostname has to have a hyphen, because you can't have an underscore in the DNS. This means I will inevitably end up typing 'systemctl start openvpn-client@foo-host2' by mistake. When that happens, it appears that systemd will try to start it, and fail because foo-host2.conf doesn't exist - and try for ever. Showing the status of foo_host2 works fine, of course, so I don't notice until I look at the logs. Is this an inherent part of how systemd works, or is there a way to make it return an error message, rather than silently trying the impossible? Thanks, Richard
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
systemd and non-existent service instances Richard Hector <richard@walnut.gen.nz> - 2020-07-19 11:30 +0200
Re: systemd and non-existent service instances Andrei POPESCU <andreimpopescu@gmail.com> - 2020-07-19 12:00 +0200
Re: systemd and non-existent service instances Richard Hector <richard@walnut.gen.nz> - 2020-07-19 12:40 +0200
Re: systemd and non-existent service instances Richard Hector <richard@walnut.gen.nz> - 2020-07-19 12:50 +0200
csiph-web