SSH : Restarting too quickly, changing state to maintenance

Hi,

I'm new to Solaris. I have an issue with ssh service. When I restart the service it exits with an exit status of 0

[root@Server1 /var/adm]$svcadm restart svc:/network/ssh:default
[root@Server1 /var/adm]$echo $?
0
[root@Server1 /var/adm]$

However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in maintenance mode.

[root@Server1 /var/adm]$svcadm restart svc:/network/ssh:default
[root@Server1 /var/adm]$echo $?
0
[root@Server1 /var/adm]$

and logs indicate the following

[ Aug 13 23:49:07 Leaving maintenance because disable requested. ]
[ Aug 13 23:49:07 Disabled. ]
[ Aug 13 23:49:25 Enabled. ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Restarting too quickly, changing state to maintenance ]

I'm not sure why the service is in maintenance mode.

Thanks

Please post output of

svcs -xv ssh

and

ps -ef | grep sshd

Which likely means you already have another sshd daemon running without smf supervision.

Following is the output of svcs -xv

[root@Server1 /]$svcs -xv ssh
svc:/network/ssh:default (SSH server)
 State: maintenance since Tue Aug 13 23:49:25 2013
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sshd
   See: /var/svc/log/network-ssh:default.log
Impact: This service is not running.

and the output of ps -ef | grep sshd

[root@Server1 /]$ps -ef|grep sshd
    root 13228 16789   0 19:31:47 ?           0:00 /usr/lib/ssh/sshd
    root 25315 16789   0 18:21:03 ?           0:00 /usr/lib/ssh/sshd
    root 20811 16789   0 18:08:58 ?           0:00 /usr/lib/ssh/sshd
  syd208 10372 10371   0 19:18:36 ?           0:01 /usr/lib/ssh/sshd
  syd211  7030  7029   0 19:01:44 ?           0:01 /usr/lib/ssh/sshd
    root 11090 16789   0 19:22:08 ?           0:00 /usr/lib/ssh/sshd
   syd22 29519 29518   0 18:32:45 ?           0:01 /usr/lib/ssh/sshd
    root 28969 16789   0 18:31:37 ?           0:00 /usr/lib/ssh/sshd
  syd265 26877 26854   0 18:25:49 ?           0:01 /usr/lib/ssh/sshd
    root 24826 16789   0 18:19:36 ?           0:00 /usr/lib/ssh/sshd
    root 27278     1   0   Aug 12 ?           0:19 /usr/lib/ssh/sshd
    root 29378 16789   0 18:32:23 ?           0:00 /usr/lib/ssh/sshd
  superv 14795 14794   0   Aug 13 ?           0:02 /usr/lib/ssh/sshd