-------- Original Message  --------
Subject: Re:[smf-discuss] SMF Server instance Enable error
From: Tom Whitten <thomas.whit...@sun.com>
To: Srinivas Krishnan <Srinivas.Krishnan at Sun.COM>
Cc: smf-discuss at opensolaris.org
Date: Thu Apr 19 2007 17:21:18 GMT+0200 (CEST)

> Srinivas Krishnan writes:
>> I am creating a Web Server SMF service using SCF Java API. After 
>> creating the service i enable the service if start up on boot option is 
>> choosed on installation. After enabling the instance through the API, 
>> the instance goes to maintenance state. The following is the log file output
>>
>> [ Apr 19 15:36:21 Executing start method 
>> ("/sun/webserver7/admin-server/bin/startserv -smf") ]
>> /sbin/sh: /sun/webserver7/admin-server/bin/startserv: not found
>> [ Apr 19 15:36:21 Method "start" exited with status 1 ]
>> [ Apr 19 15:36:21 Executing start method 
>> ("/sun/webserver7/admin-server/bin/startserv -smf") ]
>> /sbin/sh: /sun/webserver7/admin-server/bin/startserv: not found
>> [ Apr 19 15:36:21 Method "start" exited with status 1 ]
>> [ Apr 19 15:36:21 Executing start method 
>> ("/sun/webserver7/admin-server/bin/startserv -smf") ]
>> /sbin/sh: /sun/webserver7/admin-server/bin/startserv: not found
>> [ Apr 19 15:36:21 Method "start" exited with status 1 ]
>>
>> But if i clear the mainteance state and enable the instance manually, 
>> instance goes to online state. Please let me know if anything i need to 
>> do to avoid the above error.
>>
>> Thanks
>> Srinivas
>>
>> _______________________________________________
>> smf-discuss mailing list
>> smf-discuss at opensolaris.org
> 
> I think that we need to understand the error message:
> 
>    /sbin/sh: /sun/webserver7/admin-server/bin/startserv: not found
> 
> Does /sun/webserver7/admin-server/bin/startserv exist and is it executable?
> Perhaps a file system needs to be mounted on /sun and that has not yet
> happened when startd is trying to execute startserv.

Your service seems to start to early and /sun is not yet available.
It's probably missing a dependency on svc:/system/filesystem/local:default

-- Renaud

Reply via email to