[Mageia-dev] Adding tmpfiles.d support to packages

Colin Guthrie mageia at colin.guthr.ie
Thu Nov 22 11:45:14 CET 2012


'Twas brillig, and Colin Guthrie at 22/11/12 10:20 did gyre and gimble:
> 5. Add/add to %post:
> 
>  systemd-tmpfiles --create %{name}.conf
> 
> 
> (note, passing in the file basename here is very important! Don't just
> run "systemd-tmpfiles --create" as it has unexpected consequences!)

Note, I should state here that this should be done *before* any
%_post_service calls, such that the if (for whatever reason)
%_post_service decides to start the service when the package is first
installed, the pid folder etc. exist before this happens.

It should also happen *after* %_pre_useradd (but that should be a given
as it's in %post :))

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