For some reason I could not get LS to restart on OpenSolaris so I was trying to get it going under the SMF. I tried this SMF recipe but it doesn't work either:
I have impoted it and ran it but it does not work as expected:
Has anybody have an SMF manifest that works?
Thanks in advance,
Adrian Madrid
Code:
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='PMpackages:lsws'>
<service name='network/lsws' type='service' version='0'>
<create_default_instance enabled='true'/>
<single_instance/>
<dependency name='fs' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local'/>
</dependency>
<dependency name='net' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/network/loopback'/>
<service_fmri value='svc:/network/nfs/client'/>
</dependency>
<exec_method name='start' type='method' exec='/opt/lsws/bin/lswsctrl start' timeout_seconds='60'>
<method_context/>
</exec_method>
<exec_method name='stop' type='method' exec='/opt/lsws/bin/lswsctrl stop' timeout_seconds='60'>
<method_context/>
</exec_method>
<exec_method name='reload' type='method' exec='/opt/lsws/bin/lswsctrl reload' timeout_seconds='60'>
<method_context/>
</exec_method>
</service>
</service_bundle>
Code:
# svcs -a|grep lsws
offline 22:21:11 svc:/network/lsws:default
# svcadm enable lsws
# svcs -p lsws
STATE STIME FMRI
offline 22:21:11 svc:/network/lsws:default
Thanks in advance,
Adrian Madrid