[Pkg-systemd-maintainers] Bug#700888: Can't start OpenVPN using ifupdown when running systemd
Alberto Gonzalez Iniesta
agi at inittab.org
Mon Mar 17 18:33:54 GMT 2014
On Mon, Mar 17, 2014 at 07:29:07PM +0100, Michael Biebl wrote:
> Am 17.03.2014 18:51, schrieb Alberto Gonzalez Iniesta:
> > Having AUTOSTART=all *and* a openvpn option in network/interfaces does
> > not look very clever. It someone uses openvpn options in their
> > network/interfaces they shouldn't be using all (as in it makes no
> > sense).
>
> I see. It's just that AUTOSTART=all is the default, so this might be
> configuration which is not that uncommon.
Yes, that's the default. You'd change that if you don't want them (all)
autostarted. And after that you'd start using the network/interfaces
option and/or starting them manually. Anyway, I see there's a problem to
address there. Just hoping someone points out the best solution.
> Fwiw, I noticed another issue :-)
#741938, fixed in -9 :-)
> Trying to run
> systemctl start openvpn at foo.conf
> I got
> Mär 17 19:22:43 pluto systemd[1]: openvpn at foo.service: control process
> exited, code=exited status=1
> Mär 17 19:22:43 pluto systemd[1]: Failed to start OpenVPN connection to foo.
> Mär 17 19:22:43 pluto systemd[1]: Unit openvpn at foo.service entered
> failed state.
>
>
> Apparently the /run/openvpn directory was missing.
>
> You should consider shipping a tmpfiles.d [0] snippet so this directory
> is properly setup (or let the daemon create that directory).
>
> [0] http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
Oh, I didn't know about that. I'll check that out too.
Thanks!
Alberto
--
Alberto Gonzalez Iniesta | Formación, consultoría y soporte técnico
mailto/sip: agi at inittab.org | en GNU/Linux y software libre
Encrypted mail preferred | http://inittab.com
Key fingerprint = 5347 CBD8 3E30 A9EB 4D7D 4BF2 009B 3375 6B9A AA55
More information about the Pkg-systemd-maintainers
mailing list