[Freeipa-devel] 389 systemd changes

Alexander Bokovoy abokovoy at redhat.com
Sun Jan 22 13:12:33 UTC 2012


On Sun, 22 Jan 2012, Simo Sorce wrote:

> On Sat, 2012-01-21 at 10:54 +0200, Alexander Bokovoy wrote:
> > On Fri, 20 Jan 2012, Rich Megginson wrote:
> > 
> > > I have to change the dirsrv at .service file for 389 in order to add
> > > ExecStopPost=/usr/bin/rm -f @localstatedir@/run/@package_name@/slapd-%i.pid
> > > so that the pid file is removed during shutdown.  Without this,
> > > various upgrade things fail silently until they blow up later at
> > > runtime.
> > > 
> > > I know the freeipa installer copies this file from
> > > /lib/systemd/system to /etc/systemd/system - what about during
> > > upgrade?
> > In Fedora we have upgrade script that can handle this. Please make a 
> > ticket for me.
> 
> Shouldn't we just 'include' the original file and not copy it ?
> If we include it a change in the file will be automatically picked up.
We can't due to systemd design and use of it in 389-ds.

LimitNOFILE needs to be changed in the service file directly, not in 
the environment file in /etc/sysconfig or otherwise it will not be 
picked up by the systemd.

-- 
/ Alexander Bokovoy




More information about the Freeipa-devel mailing list