[bug-notifications] [fetchmail 0004037]: Set AUTOENABLE to NO to suppress SMF warnings on initial installation?
Mantis Bug Tracker
noreply at opencsw.org
Sat Nov 14 15:39:06 CET 2009
A NOTE has been added to this issue.
======================================================================
http://www.opencsw.org/bugtrack/view.php?id=4037
======================================================================
Reported By: skayser
Assigned To: james
======================================================================
Project: fetchmail
Issue ID: 4037
Category: packaging
Reproducibility: always
Severity: minor
Priority: normal
Status: acknowledged
======================================================================
Date Submitted: 2009-11-13 18:05 CET
Last Modified: 2009-11-14 15:39 CET
======================================================================
Summary: Set AUTOENABLE to NO to suppress SMF warnings on
initial installation?
Description:
On installation cswfetchmail does not have a configuration file and goes
into maintenance mode.
Nov 13 17:51:49 ray3 svc.startd[7]: network/cswfetchmail:default failed
repeatedly: transitioned to maintenance (see 'svcs -xv' for details)
# tail /var/svc/log/network-cswfetchmail:default.log
[ Nov 13 17:51:49 Method "start" exited with status 0 ]
[ Nov 13 17:51:49 Stopping because all processes in service exited. ]
[ Nov 13 17:51:49 Executing stop method
("/var/opt/csw/svc/method/svc-cswfetchmail stop") ]
[ Nov 13 17:51:49 Method "stop" exited with status 0 ]
[ Nov 13 17:51:49 Executing start method
("/var/opt/csw/svc/method/svc-cswfetchmail start") ]
[ Nov 13 17:51:49 Method "start" exited with status 0 ]
[ Nov 13 17:51:49 Stopping because all processes in service exited. ]
[ Nov 13 17:51:49 Executing stop method
("/var/opt/csw/svc/method/svc-cswfetchmail stop") ]
[ Nov 13 17:51:49 Method "stop" exited with status 0 ]
[ Nov 13 17:51:49 Restarting too quickly, changing state to maintenance ]
# ksh -x /var/opt/csw/svc/method/svc-cswfetchmail start
+ findConf
+ [ -z ]
+ exit 0
Could you include the following comment in the init script so that
i.cswinitsmf won't enable the SMF service right away?
#AUTOENABLE no
See http://opencsw.wikidot.com/cswclassutils-package#toc2 for reference.
======================================================================
----------------------------------------------------------------------
(0006987) james (manager) - 2009-11-14 15:39
http://www.opencsw.org/bugtrack/view.php?id=4037#c6987
----------------------------------------------------------------------
#AUTOENABLE no is of no use because it prevents restart after install on
update (overriding previous preserve state).
The underlying problem is in the mechanism which assumes there should be a
maintenance state because nothing is running. A workaround is to add
"sleep 99" before exiting to fool it.
There should a return value to indicate the state is disabled and not
running. It's a non error state and normally exit 0 indicates no error
which is why I make it exit 0. exit 1 as per
http://www.opencsw.org/bugtrack/view.php?id=4037 puts it into maintenance
always. Not wanting to get into a discussion about svc being a deficient
system (because it exists) but couldn't/doesn't cswclasssutil put a layer
between the package script and the system?
More information about the bug-notifications
mailing list