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