[bug-notifications] [cswclassutils 0003764]: Problems with service manifest generation and buggy stop methods

Mantis Bug Tracker noreply at opencsw.org
Thu Aug 6 09:37:07 CEST 2009


The following issue has been set as RELATED TO issue 0003730. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3764 
====================================================================== 
Reported By:                gadavis
Assigned To:                bonivart
====================================================================== 
Project:                    cswclassutils
Issue ID:                   3764
Category:                   packaging
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-07-10 21:53 CEST
Last Modified:              2009-08-06 09:37 CEST
====================================================================== 
Summary:                    Problems with service manifest generation and buggy
stop methods
Description: 
I've noticed some issues with the NRPE package which I think might actually
be a bug with either cswclassutils or mgar, with regards to the service
manifests. When trying to install a package from the global zone on a zone
that is in the halted state, the package installation errors out. The gory
details are in bug 0003730 for NRPE.

I've also noticed that if a buggy start/stop script fails to actually stop
the daemon in question that the system will hang on shutdown due to the
method script timeout values all being set to 18446744073709551615. 

This isn't the first time that I've had a package with a bad stop method
hang the system on shutdown. I'd like to propose a couple of mitigating
strategies: 

* Set the method script timeout values to something reasonable so that SMF
can complain about the bug in the stop method script properly

* Allow a package to specify in it's GAR Makefile that the stop method
should be ":kill" rather than "/path/to/init/script stop". Obviously some
packages will need to do a bit more cleanup than just killing a process.
However, for simple daemons like nrpe letting SMF handle the process
termination with ":kill" seems like it will suffice. I see that a package
can provide it's own custom written service manifest in GAR, but it seems
like overkill in simple cases like NRPE.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0003730 svcadm disable cswnrpe does not gracefu...
====================================================================== 

---------------------------------------------------------------------- 
 (0006513) bonivart (manager) - 2009-08-05 17:31
 http://www.opencsw.org/mantis/view.php?id=3764#c6513 
---------------------------------------------------------------------- 
I have set new values after looking at what Sun uses for Sendmail. It will
be in the next release.




More information about the bug-notifications mailing list