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.

tom

Reply via email to