[Mageia-dev] OpenVPN missing PID dir

Olivier Blin mageia at blino.org
Mon Nov 26 00:31:22 CET 2012


Colin Guthrie <mageia at colin.guthr.ie> writes:

> '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).

Looks like this list is available to the script from stdin, see
/var/lib/rpm/filetriggers/httpd.script or
/var/lib/rpm/filetriggers/pear.script

-- 
Olivier Blin - blino


More information about the Mageia-dev mailing list