![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|