[bug-notifications] [cswclassutils 0003633]: Service using init scripts should not be configured to at boot time when autoenable_daemons=no

Mantis Bug Tracker noreply at opencsw.org
Tue Jun 30 00:00:10 CEST 2009


The following issue has been REOPENED. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3633 
====================================================================== 
Reported By:                yann
Assigned To:                bonivart
====================================================================== 
Project:                    cswclassutils
Issue ID:                   3633
Category:                   regular use
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             2009-04-13 18:23 CEST
Last Modified:              2009-06-30 00:00 CEST
====================================================================== 
Summary:                    Service using init scripts should not be configured
to at boot time when autoenable_daemons=no
Description: 
Hi,

It seems cswinitsmf class doesn't perfectly respect the opencsw standard.
According to the standard when autoenable_daemons=no, the install scripts
whould "skip enabling the demon to run at boot time" [1], that doesn't seem
to be the case currently with init scripts, rc links are setup whatever the
autoenable setting.

I had this bug with the dovecot package, at the first reboot dovecot was
launched despite autoenable_daemons being set to no.


[1] http://www.opencsw.org/standards/csw.conf
====================================================================== 

---------------------------------------------------------------------- 
 (0006363) yann (reporter) - 2009-06-30 00:00
 http://www.opencsw.org/mantis/view.php?id=3633#c6363 
---------------------------------------------------------------------- 
Hi Peter,

I would like to reopen this bug because I am not quite sure what I asked
in the original report was standard compliant.

According to the standard, if autoenable_daemons=no, postinstall script
should skip enabling the demon to run at boot time. Right now cswclassutils
doesn't install the rc links if autoenable_daemons=no so it should be
right.

However according to the same standard, it is suggested that init script
rely on configuration script presence to know whether or not they should
start the daemon, if the service doesn't provide its own way to
enable/disable it, which is usually the case. 

This configuration file creation mecanism allow to enable/disable the
daemon at boot time:
"That way, the user has the option to manually create the config file
later on, and thus "manually" enable the demon at boot time (as opposed to
"autoenable")."


Reading that, if autoenable_daemons=no, I would think I just have to
create the configuration file to enable the daemon at boot time but that
would not be the case as cswclassutils doesn't create the rc links.


I am not sure I understand well this standard. What's your understand on
this ?




More information about the bug-notifications mailing list