The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Debugging PL/SQL from .NET iBot Oracle Updates (RSS) 0 04-06-2008 06:10 AM
Debugging the JVM Using dbx iBot UNIX and Linux RSS News 0 03-06-2008 07:20 PM
FTP script debugging alfredo123 Shell Programming and Scripting 1 11-08-2006 01:22 PM
tmchild exec service failed erron = 2 mbjyork SUN Solaris 2 02-22-2006 11:02 PM
Regarding Debugging sarwan Shell Programming and Scripting 2 02-09-2006 12:32 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-01-2007
craigp84 craigp84 is offline
Registered User
  
 

Join Date: May 2007
Location: Glasgow, Scotland
Posts: 59
SMF - debugging a failed service

I've hit an issue with the console-login service. I've been playing with SMF and have broken something.

How do i track down what's broken?


Symptoms -


Server boots up to recovery console.
Code:
svcs -a | grep milestone

shows the server to be at the multi-user-server milestone (equiv of runlevel 3 in oldspeak i believe).

Complains that console-login has failed to start.

Although all the required deps are online (as per svcs -l console-login) it will still not come up.


Code:
[root@yellow bin]# svcs -l console-login
fmri         svc:/system/console-login:default
name         Console login
enabled      false (temporary)
state        disabled
next_state   none
state_time   Mon Oct 01 11:23:17 2007
restarter    svc:/system/svc/restarter:default
dependency   require_all/none svc:/system/filesystem/minimal (online)
dependency   require_all/none svc:/system/identity:node (online)
dependency   require_all/none svc:/system/utmp:default (online)
dependency   require_all/none svc:/milestone/sysconfig (online)
dependency   optional_all/none svc:/system/auditd (disabled)


Code:
[root@yellow bin]# svcs -xv console-login
svc:/system/console-login:default (Console login)
 State: disabled since Mon Oct 01 11:23:17 2007
Reason: Temporarily disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-1S
   See: man -M /usr/share/man -s 1M ttymon
Impact: This service is not running.


Code:
[root@yellow bin]# tail /var/svc/log/system-console-login\:default.log
[ Oct  1 10:59:25 Enabled. ]
[ Oct  1 10:59:43 Disabled. ]
[ Oct  1 11:13:03 Enabled. ]
[ Oct  1 11:15:57 Disabled. ]
[ Oct  1 11:16:20 Enabled. ]
[ Oct  1 11:16:41 Disabled. ]
[ Oct  1 11:16:48 Enabled. ]
[ Oct  1 11:17:19 Disabled. ]
[ Oct  1 11:17:32 Rereading configuration. ]
[ Oct  1 11:18:23 Enabled. ]


Code:
[root@yellow bin]# svcadm enable console-login
[root@yellow bin]# echo $?
0

When i run the method script by hand (sh -xv /lib/svc/method/console-login), it works as expected with no errors either.

The last access timestamp on the method script is not being updated when i run svcadm enable/disable. Looks like its a decision being taken within SMF not to even try to start the service.

This is where i'm stuck, other than the /var/svc/log dir, how else can i peek into the workings / decision trails of SMF?

Many thanks in advance,

Craig
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0