OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004037 [fetchmail] packaging minor always 2009-11-13 18:05 2011-03-27 10:48
Reporter skayser View Status public  
Assigned To james
Priority normal Resolution won't fix  
Status closed  
Summary 0004037: 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.
Additional Information # pkgparam CSWfetchmail VERSION
6.3.12,REV=2009.10.18
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006987)
james (reporter)
2009-11-14 15:39

#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?
(0008941)
james (reporter)
2011-03-27 10:48

This behaviour is the result of CSWcas-initsmf and was a feature request, see:
https://www.opencsw.org/mantis/view.php?id=3635 [^]

Please request another change in CSWcas-initsmf if you don't like it.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker