Samba service in maintenance mode ???

I have a Solaris 10 SunFire v880 machine and I'm having trouble with Samba.

Samba has worked on this machine but since the machine has been re-booted Samba has not worked.

Machine details are:

      
cat /etc/release
                
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
Use is subject to license terms.
Assembled 27 October 2008

The Samba version is:

smbd -V

Version 3.0.37

If I disable Samba Wins and Swat then check the 'svcs' I get

svcs samba wins

STATE          STIME    FMRI
disabled       11:51:08 svc:/network/samba:default
disabled       11:51:08 svc:/network/wins:default

svcs swat

STATE          STIME    FMRI
disabled       11:51:22 svc:/network/swat:default

When I execute the start command and check the process I see its running

svcadm enable samba wins
svcadm enable swat

ps -ef | grep smbd

root 15898  2920   0 11:54:21 pts/3       0:00 grep smbd
root 15890     7   0 11:54:16 ?           0:00 /usr/sfw/sbin/smbd -D

The network-samba:default.log file shows the following:

[ Mar 31 11:54:15 Enabled. ]
[ Mar 31 11:54:15 Executing start method ("/usr/sfw/sbin/smbd -D") ]

But the svcs command shows the Samba STATE as offline

svcs samba wins

STATE          STIME    FMRI
online         11:54:15 svc:/network/wins:default
offline*       11:54:15 svc:/network/samba:default

The Swat STATE is showing as online

svcs swat

STATE          STIME    FMRI
online         11:58:14 svc:/network/swat:default

Then after a few minutes the Samba services goes into maintenance STATE

svcs samba wins

STATE          STIME    FMRI
online         11:54:15 svc:/network/wins:default
maintenance    11:57:05 svc:/network/samba:default

The network-samba:default.log file shows this entry

[ Mar 31 11:57:05 Method or service exit timed out.  Killing contract 178 ]

Does anyone have any idea what the problem is?

On the off chance that this might help someone else I finally got to the cause of the problem.

The samba process was timing out at startup due to a problem with the printers.

When I started the samba service and used the process ID in a ptree command the spawned process was waiting for lpstat -v to finish executing. The lpstat was hanging causing the samba startup process to timeout and shut itself down.

When I commented out the entries in the printers.conf file the samba process started and stayed up.

Running "svcs -xv" shows more details on why starting a service failed (and transitioned to maintenance mode).