[Bug 675406] New: openvpn does not start with systemd
https://bugzilla.novell.com/show_bug.cgi?id=675406 https://bugzilla.novell.com/show_bug.cgi?id=675406#c0 Summary: openvpn does not start with systemd Classification: openSUSE Product: openSUSE 11.4 Version: RC 2 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: kasievers@novell.com ReportedBy: aj@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- If I run "rcopenvpn start" or "systemctl start openvpn.service", nothing happens, /var/log/messages contains only: Feb 26 17:23:03 x61s-aj systemd[1]: openvpn.service operation timed out. Terminating. Feb 26 17:23:03 x61s-aj systemd[1]: Unit openvpn.service entered failed state. the openvpn.service needs to ask myself for a password and the init file contains "X-Interactive: true" - but it just does not work. I see an sd-exec process. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c1
--- Comment #1 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c2
--- Comment #2 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c3
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c4
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c5
--- Comment #5 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c6
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c7
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c8
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c9
Klaus Kämpf
Unlike SYSV/insserv, interactive init scripts are not supported. [...] It's nothing we can fix in systemd. Services are completely disconnected from consoles, ttys, login-shells. This can only be fixed in openvpn, so it should stick with the openvpn package.
Kay, can you point us to documentation/examples on how stuff like openvpn, crypto partitions, etc. are supposed to work with systemd then ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c10
--- Comment #10 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c11
--- Comment #11 from Klaus Kämpf
AFAIK crypto partitions are already supported.
Oh, great, but how, if in systemd "Services are completely disconnected from consoles, ttys, login-shells." ? A pointer to documentation would be nice. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c12
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c13
--- Comment #13 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c14
--- Comment #14 from Jiri Slaby
test packages available for both systemd and openvpn in home:fcrozat:systemd
For me the fix is actually this line: -# X-Interactive: true Because I have openvpn built with option to suck passwd from file. And this is exactly what I had to remove from init script to make it working. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c15
--- Comment #15 from Marius Tomaschewski
test packages available for both systemd and openvpn in home:fcrozat:systemd
openvpn should ask for password in both systemd and sysvinit boots.
user/pass query isn't optimal, due to the way systemd is parallelizing the request. Not sure we can do anything .
Thanks! I'll look into this issue and review / test your patch when I'm back in August. (In reply to comment #14)
(In reply to comment #13)
test packages available for both systemd and openvpn in home:fcrozat:systemd
For me the fix is actually this line: -# X-Interactive: true
Because I have openvpn built with option to suck passwd from file. And this is exactly what I had to remove from init script to make it working.
For the moment, I've removed it. Further, I've also enabled to allow to store the passwd in a file. => https://build.opensuse.org/request/show/76057 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c16
--- Comment #16 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c17
--- Comment #17 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c18
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c19
--- Comment #19 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c20
--- Comment #20 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c21
--- Comment #21 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c22
--- Comment #22 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c22
--- Comment #22 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=675406
https://bugzilla.novell.com/show_bug.cgi?id=675406#c23
Marius Tomaschewski
participants (1)
-
bugzilla_noreply@novell.com