Package: openvpn Version: 2.3.7-2 Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu ubuntu-patch xenial
Hello, openvpn's SysV init script has X-Start-Before: $x-display-manager gdm kdm xdm wdm ldm sdm nodm to make sure that display managers wait for openvpn to start. Otherwise it could happen that openvpn asks for a password, and then the display manager clobbers the screen by starting X. However, this is missing in the systemd unit. This will do the same thing for all DMs plus gettys, by sorting before the systemd-user-sessions.service synchronization point. Thanks for considering, Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
- Run openvpn@.service before systemd-user-sessions.service to avoid gettys and display managers starting on top of possible password prompts. This provides the equivalent of the init.d script's X-Start-Before:. diff -pruN 2.3.7-1/debian/openvpn@.service 2.3.7-1ubuntu1/debian/openvpn@.service --- 2.3.7-1/debian/openvpn@.service 2015-07-07 09:54:33.000000000 +0000 +++ 2.3.7-1ubuntu1/debian/openvpn@.service 2015-07-08 10:28:10.000000000 +0000 @@ -2,6 +2,7 @@ Description=OpenVPN connection to %i PartOf=openvpn.service ReloadPropagatedFrom=openvpn.service +Before=systemd-user-sessions.service Documentation=man:openvpn(8) Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
signature.asc
Description: Digital signature