NICHU wrote: > Hello > I have problem with managing services in Solaris. > When I try to do anything (start stop restart etc.) with any services there > is no action and nothing is logged into syslog or /var/svc/log > I'd like not to restart my machine because everything else seems to work nice > ;) > > -bash-3.00# svcadm disable sendmail > -bash-3.00# echo $? > 0 > -bash-3.00# svcadm enable sendmail > -bash-3.00# echo $? > 0 > -bash-3.00# svcs -a | grep sendmail > disabled 2007 svc:/network/smtp:sendmail A returned value of zero from svcadm enable doesn't mean the service successfully started. svcadm enable is asynchronous. What is weird here is that the service remained in the state of disabled, it should be either online, offline or maintenance at this point.
> > svcs -d sendmail shows me: > -bash-3.00# svcs -d sendmail > STATE STIME FMRI > online 2007 svc:/system/identity:domain > online 2007 svc:/network/service:default > online 2007 svc:/milestone/name-services:default > online 2007 svc:/system/filesystem/local:default > online 2007 svc:/system/system-log:default > offline 2008 svc:/system/filesystem/autofs:default Weird, my system doesn't report sendmail being dependend on autofs. What version of Solaris/OpenSolaris are you running? just in case... Did you changed any service manifest? > > but can not enable autofs too. > > -bash-3.00# svcs -xv show me this: > svc:/network/rpc/bind:default (RPC bindings) > State: disabled since Thu Apr 03 23:19:17 2008 > Reason: Disabled by an administrator. > See: http://sun.com/msg/SMF-8000-05 > See: man -M /usr/share/man -s 1M rpcbind > See: /var/svc/log/network-rpc-bind:default.log > Impact: 6 dependent services are not running: > svc:/network/nfs/nlockmgr:default > svc:/network/nfs/status:default > svc:/network/nfs/cbd:default > svc:/system/filesystem/autofs:default > svc:/network/rpc/meta:default > svc:/network/nfs/mapid:default If you read the output above carefully, you'll see that you disabled a service (rpc/bind) that is necessary for the 6 services reported as 'offline' to properly run. > > svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent) > State: disabled since Fri Dec 07 16:48:05 2007 > Reason: Disabled by an administrator. > See: http://sun.com/msg/SMF-8000-05 > See: man -M /usr/share/man -s 1M sendmail > See: /var/svc/log/network-smtp:sendmail.log > Impact: This service is not running. This is puzzling... see my reply about svcadm enable above. Antonello > > but I can't enable those 6 services too - they're in offline mode: > -bash-3.00# svcs -a | grep offline > offline 2008 svc:/system/filesystem/autofs:default > offline 2008 svc:/network/rpc/meta:default > offline Jul_11 svc:/network/nfs/status:default > offline Jul_11 svc:/network/nfs/cbd:default > offline Jul_11 svc:/network/nfs/nlockmgr:default > offline Jul_11 svc:/network/nfs/mapid:default > > Maybe this will help: > > -bash-3.00# svcs -l svc:/network/nfs/nlockmgr:default > fmri svc:/network/nfs/nlockmgr:default > name NFS lock manager > enabled true > state offline > next_state none > state_time Fri Jul 11 12:34:07 2008 > restarter svc:/system/svc/restarter:default > dependency require_any/error svc:/milestone/network (online) > dependency require_all/restart svc:/network/rpc/bind (disabled) > dependency require_all/error svc:/network/nfs/status (offline) > dependency require_all/error svc:/system/filesystem/minimal (online) > > -bash-3.00# svcs -xv svc:/network/nfs/nlockmgr:default > svc:/network/nfs/nlockmgr:default (NFS lock manager) > State: offline since Fri Jul 11 12:34:07 2008 > Reason: Service svc:/network/rpc/bind:default is disabled. > See: http://sun.com/msg/SMF-8000-GE > Path: svc:/network/nfs/nlockmgr:default > svc:/network/rpc/bind:default > See: man -M /usr/share/man -s 1M lockd > Impact: This service is not running. > > cat /etc/release > Solaris Express Community Edition snv_70 X86 > Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. > Use is subject to license terms. > Assembled 06 August 2007 > > Thanks for any help > > best regards > nichu