Bug#741938: OpenVPN: /run/openvpn

2014-04-01 Thread Alberto Gonzalez Iniesta
On Mon, Mar 31, 2014 at 09:11:14PM +0200, Flavio Stanchina wrote:
   openvpn (2.3.2-9) unstable; urgency=medium
   .
 * Create /run/openvpn in init script even if no VPN is
   autostarted by it. (Closes: #741938)
 
 No it doesn't. Why should the systemd configuration depend on the legacy
 init.d script? I've disabled it entirely with
  systemctl disable openvpn.service
 
 I'm new to systemd so it's entirely possible that this kind of dependency
 is fine and good, but it just doesn't look right to me.
 
 Not sure what the best solution could be, however. My very own solution was
 to edit
  /lib/systemd/system/openvpn@.service
 and change the path to the status file like this:
  /run/openvpn-%i.status 10
 

The next upload contains a tmpfiles.d conf file that solves this.

Regards,

Alberto

-- 
Alberto Gonzalez Iniesta| Formación, consultoría y soporte técnico
mailto/sip: a...@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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#741938: OpenVPN: /run/openvpn

2014-03-31 Thread Flavio Stanchina
  openvpn (2.3.2-9) unstable; urgency=medium
  .
* Create /run/openvpn in init script even if no VPN is
  autostarted by it. (Closes: #741938)

No it doesn't. Why should the systemd configuration depend on the legacy
init.d script? I've disabled it entirely with
 systemctl disable openvpn.service

I'm new to systemd so it's entirely possible that this kind of dependency
is fine and good, but it just doesn't look right to me.

Not sure what the best solution could be, however. My very own solution was
to edit
 /lib/systemd/system/openvpn@.service
and change the path to the status file like this:
 /run/openvpn-%i.status 10

-- 
Ciao, Flavio

Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org