smf services
Hi dear members!
I have recently installed apache manually into /opt/apache now i am trying to create smf services for it to start it automatically on reboot. Here is my http.xml file
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='http'>
<service
name='network/http'
type='service'
version='1'>
<create_default_instance enabled='true' />
<single_instance/>
<exec_method
type='method'
name='start'
exec='/opt/apache/bin/apachectl startssl'
timeout_seconds='60' />
<exec_method
type='method'
name='stop'
exec='/opt/apache/bin/apachectl stop'
timeout_seconds='60' />
<exec_method
type='method'
name='refresh'
exec='/opt/apache/bin/apachectl gracefull'
timeout_seconds='60' />
<stability value='Unstable' />
<template>
<common_name>
<loctext xml:lang='C'> Apache Server
</loctext>
</common_name>
<documentation>
<manpage title='httpd' section='1M' manpath='/opt/apache/man' />
</documentation>
</template>
</service>
</service_bundle>
if i use svcadm enable http its working perfect start my httpd and on svcadm disable its stop the http. But on restart the computer its smf service not start it automatically and send me error to check /etc/svc/volatile/network-http\:default.log
here is the out of network-http\:default.log
[ start + 7.22s Enabled. ]
[ Sep 14 16:04:13 Executing start method ("/opt/apache/bin/apachectl startssl") ]
/sbin/sh: /opt/apache/bin/apachectl: not found
please help me how i can solve this issue why /bin/sh not find /opt/apache/binapachecl ?
Regards,
Umar Draz

