[Freeipa-devel] [PATCHES] start/stop related fixes

Jakub Hrozek jhrozek at redhat.com
Thu Apr 30 16:45:26 UTC 2009


On Thu, 2009-04-30 at 12:02 -0400, Stephen Gallagher wrote:
> > 
> > Fix initscript return codes is pretty straightforward - just return
> > correct values in initscript functions. These two patches should
> address
> > ticket #28.
> > 
> > The third one redirects stderr when starting sssd to a temporary
> logfile
> > and only prints it when something fails during the startup. This
> should
> > address ticket #27.
> 
> Why are you doing rm -f $LOGFILE at the end of start()? Won't you
> erase
> any startup error messages?
> 

Yes, but after printing them to stderr if needed. The logfile is
temporary for the startup.

The intent was to save stderr to a temporary logfile, check if sssd
started correctly, if so, don't show the stderr output (as it contains
the "Unable to register control with rootdse!" messages), if it failed
to start, print the error messages.

> > The last one removes the pid file on quitting sssd, right now the
> pid
> > file is left in /var/run after sssd finished which doesn't seem
> right.
> > Related to this - should sssd be a single-instance daemon? If so,
> > there's another bug in pidfile() - a second instance of sssd that's
> ran
> > overwrites the pid file. 
> > 
> 
> Yes, SSSD MUST be single-instance. Please fix that and roll it into
> this
> patch.
> 

OK. I also noticed that it's trying to remove the pid file for all
processes, which is wrong, should be done only for sssd, I need to fix
that, too.




More information about the Freeipa-devel mailing list