Mantis - dovecot
Viewing Issue Advanced Details
5096 regular use major always 2013-07-30 00:25 2013-08-09 01:45
laurent  
jgoerzen  
high  
closed  
fixed  
none    
none  
0005096: The cswdovecot method does not work with "stop"
On every system shutdown, or when doing an "svcadm disable cswdovecot", the cswdovecot service goes into maintenance mode, as the processes are killed by the system instead of the method:

[ Jul 29 10:47:34 Stopping because service disabled. ]
[ Jul 29 10:47:34 Executing stop method ("/var/opt/csw/svc/method/svc-cswdovecot stop") ]
Dovecot is already stopped.
[ Jul 29 10:47:35 Method "stop" exited with status 0 ]
[ Jul 29 10:48:34 Method or service exit timed out. Killing contract 53 ]

It appears to be because the method finds the base_dir value by using "grep base_dir:", when it fact, it now uses an = sign.

I've successfully replaced it by the following:
base_dir=`$DAEMON -a | sed -n 's/^base_dir[ ]*=[ ]*//p'`

(note that each [] contain one space and one tab)
Issue History
2013-07-30 00:25 laurent New Issue
2013-08-01 23:02 jgoerzen Status new => assigned
2013-08-01 23:02 jgoerzen Assigned To => jgoerzen
2013-08-03 01:00 jgoerzen Note Added: 0010510
2013-08-03 01:00 jgoerzen Status assigned => feedback
2013-08-08 05:23 jgoerzen Note Added: 0010519
2013-08-08 05:23 jgoerzen Status feedback => resolved
2013-08-08 05:23 jgoerzen Resolution open => fixed
2013-08-09 01:45 jgoerzen Status resolved => closed

Notes
(0010510)
jgoerzen   
2013-08-03 01:00   
Thanks for the patch! Patch has been added to the build recipe and the following new packages have been created and uploaded to the unstable catalog:

dovecot-2.2.4,REV=2013.08.02-SunOS5.10-i386-CSW.pkg.gz
dovecot-2.2.4,REV=2013.08.02-SunOS5.10-sparc-CSW.pkg.gz
dovecot_dev-2.2.4,REV=2013.08.02-SunOS5.10-i386-CSW.pkg.gz
dovecot_dev-2.2.4,REV=2013.08.02-SunOS5.10-sparc-CSW.pkg.gz
dovecot_devel_stub-2.2.4,REV=2013.08.02-SunOS5.10-all-CSW.pkg.gz

please verify the bug has been fixed.
(0010519)
jgoerzen   
2013-08-08 05:23   
Fixed in 2.2.4,REV=2013.08.02 released to unstable catalog