[Mageia-dev] OpenVPN missing PID dir

Colin Guthrie mageia at colin.guthr.ie
Sun Nov 25 21:47:05 CET 2012


'Twas brillig, and Olivier Blin at 25/11/12 15:19 did gyre and gimble:
> Colin Guthrie <mageia at colin.guthr.ie> writes:
> 
>> 1. "systemd-tmpfiles --create" is not run in the %post (before
>> add-service helper) (note that on cauldron the command must be:
>> "systemd-tmpfiles --create openvpn.conf"). This means that you'll need a
>> reboot before openvpn will work on mga2 after installing it.
> 
> Hi,
> 
> Shouldn't this be done through a rpm filetrigger?

I don't think there is a way to specify which files triggered the file
trigger is there?

Basically we'd need to know the basename of the file that changed, also
there are times when it has to be excluded (e.g. some files should not
be run except at boot).

For now I've been adding the relevant calls to the rpms that need them.
It's pretty simple, but would be nice it it wasn't needed. It could, in
most cases, be combined with %_post_service, but again, I'm not sure
it's worth the hassle as there will always be cases where it needs to
happen outside of this structure too.

Col


-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the Mageia-dev mailing list