Rob, Usually offline indicates there is problem with dependency. What is the output looks like if you do:
mdb -p `pgrep startd` and run ::vertex ! grep gss ::vertex ! grep name_services ::vertex ! grep network Steve Robert Thurlow wrote: > I have some code under development which is showing odd SMF > behaviour. I can't enable the service or get an indication > of what the issue is. This is Nevada build 65 with the CIFS > client packages installed on an amd64 system. Here's what I > see: > > # svcadm disable smb/client > # svcadm enable smb/client > # svcs -xv smb/client > svc:/network/smb/client:default (SMB client) > State: offline since Wed Sep 05 07:04:36 2007 > Reason: Unknown. > See: http://sun.com/msg/SMF-8000-AR > See: man -M /usr/share/man -s 1M mount_smbfs > Impact: This service is not running. > > # svcs -l smb/client > fmri svc:/network/smb/client:default > name SMB client > enabled true > state offline > next_state none > state_time Wed Sep 05 07:04:36 2007 > restarter svc:/system/svc/restarter:default > dependency require_any/error svc:/milestone/network (online) > dependency optional_all/none svc:/network/rpc/gss (online) > dependency require_all/refresh svc:/milestone/name-services (online) > > So it's offline, for no reason, and the log file shows nothing > interesting: > > # cat /var/svc/log/network-smb-client:default.log > [ Sep 4 17:36:47 Enabled. ] > [ Sep 4 17:36:48 Rereading configuration. ] > [ Sep 4 17:36:49 Executing start method ("/lib/svc/method/smb-client > start") ] > [ Sep 4 17:36:50 Method "start" exited with status 0 ] > [ Sep 4 18:51:20 Disabled. ] > [ Sep 4 18:51:20 Rereading configuration. ] > [ Sep 4 18:51:20 Enabled. ] > [ Sep 4 18:51:20 Executing start method ("/lib/svc/method/smb-client > start") ] > [ Sep 4 18:51:20 Method "start" exited with status 0 ] > [ Sep 4 22:55:45 Enabled. ] > [ Sep 5 07:00:19 Disabled. ] > [ Sep 5 07:00:32 Enabled. ] > [ Sep 5 07:04:22 Disabled. ] > [ Sep 5 07:04:36 Enabled. ] > > I've attached the manifest and the method script for the > service. What can I do to debug this? > > Thanks, > Rob T > ------------------------------------------------------------------------ > > <?xml version="1.0"?> > <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> > <!-- > Copyright 2007 Sun Microsystems, Inc. All rights reserved. > Use is subject to license terms. > > CDDL HEADER START > > The contents of this file are subject to the terms of the > Common Development and Distribution License (the "License"). > You may not use this file except in compliance with the License. > > You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE > or http://www.opensolaris.org/os/licensing. > See the License for the specific language governing permissions > and limitations under the License. > > When distributing Covered Code, include this CDDL HEADER in each > file and include the License file at usr/src/OPENSOLARIS.LICENSE. > If applicable, add the following below this CDDL HEADER, with the > fields enclosed by brackets "[]" replaced with your own identifying > information: Portions Copyright [yyyy] [name of copyright owner] > > CDDL HEADER END > > ident "@(#)client.xml 1.1 07/06/21 SMI" > > NOTE: This service manifest is not editable; its contents will > be overwritten by package or patch operations, including > operating system upgrade. Make customizations in a different > file. > --> > > <service_bundle type='manifest' name='SUNWsmbfsu:smb-client'> > > <service > name='network/smb/client' > type='service' > version='1'> > > <create_default_instance enabled='false' /> > > <single_instance /> > > <dependency name='network' > grouping='require_any' > restart_on='error' > type='service'> > <service_fmri value='svc:/milestone/network' /> > </dependency> > > <dependency name='gss' > grouping='optional_all' > restart_on='none' > type='service'> > <service_fmri value='svc:/network/rpc/gss' /> > </dependency> > > <dependency name='name-services' > grouping='require_all' > restart_on='refresh' > type='service'> > <service_fmri value='svc:/milestone/name-services' /> > </dependency> > > <dependent > name='smb-client_multi-user' > grouping='optional_all' > restart_on='none'> > <service_fmri value='svc:/milestone/multi-user' /> > </dependent> > > <!-- > Err on the side of caution for the mountalls in the smb-client > startup script. Don't timeout just because remote servers are > being sluggish. > --> > <exec_method > type='method' > name='start' > exec='/lib/svc/method/smb-client %m' > timeout_seconds='3600' /> > > <exec_method > type='method' > name='stop' > exec='/lib/svc/method/smb-client %m' > timeout_seconds='60' /> > > <property_group > name='startd' > type='framework'> > <propval name='duration' type='astring' value='transient' /> > </property_group> > > <stability value='Unstable' /> > > <template> > <common_name> > <loctext xml:lang='C'> > SMB client > </loctext> > </common_name> > <documentation> > <manpage title='mount_smbfs' section='1M' > manpath='/usr/share/man' /> > </documentation> > </template> > </service> > > </service_bundle> > > ------------------------------------------------------------------------ > > #!/sbin/sh > # > # CDDL HEADER START > # > # The contents of this file are subject to the terms of the > # Common Development and Distribution License (the "License"). > # You may not use this file except in compliance with the License. > # > # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE > # or http://www.opensolaris.org/os/licensing. > # See the License for the specific language governing permissions > # and limitations under the License. > # > # When distributing Covered Code, include this CDDL HEADER in each > # file and include the License file at usr/src/OPENSOLARIS.LICENSE. > # If applicable, add the following below this CDDL HEADER, with the > # fields enclosed by brackets "[]" replaced with your own identifying > # information: Portions Copyright [yyyy] [name of copyright owner] > # > # CDDL HEADER END > # > # > # Copyright 2007 Sun Microsystems, Inc. All rights reserved. > # Use is subject to license terms. > # > #ident "@(#)smb-client 1.2 07/07/26 SMI" > > # > # Start/stop client SMB service > # > > . /lib/svc/share/smf_include.sh > > case "$1" in > 'start') > > /sbin/mountall -F smbfs > ;; > > 'stop') > /sbin/umountall -F smbfs > ;; > > *) > echo "Usage: $0 { start | stop }" > exit 1 > ;; > esac > exit $SMF_EXIT_OK > > ------------------------------------------------------------------------ > > _______________________________________________ > smf-discuss mailing list > smf-discuss at opensolaris.org >