SMF service always shows offline even when it is up and running

I have added a service to SMF under /var/svc/manifest/application and am successful in starting it, but state always shows offline. How can I get it to show up as "online"?

Output of svcs -l command:

bash-3.00# svcs -l esm

fmri svc:/application/esm:default

enabledtrue

stateoffline

next_stateonline

state_timeFri 01 Jun 2007 11:02:47 AM PDT

logfile/var/svc/log/application-esm:default.log

restartersvc:/system/svc/restarter:default

contract_id 1113

dependencyrequire_all/none svc:/system/filesystem/local (online)

dependencyrequire_all/none svc:/network/mysql (online)

ouput of svcs -x command:

bash-3.00# svcs -x esm

svc:/application/esm:default (?)

State: offline since Fri 01 Jun 2007 11:02:47 AM PDT

Reason: Start method is running.

See: http://sun.com/msg/SMF-8000-C4

See: /var/svc/log/application-esm:default.log

Impact: This service is not running.

[984 byte] By [dwwpa] at [2007-11-27 6:10:39]
# 1
Turns out I just needed to launch the app as a background task (use & in my svc method file) and it works fine.
dwwpa at 2007-7-12 17:16:18 > top of Java-index,Solaris Operating System,Solaris 10 Features...