Beautiful, you just saved me learning all about SMF manifests for the time. Many many thanks.
You're welcome! Now that I've contributed something I wont feel so bad complaining about the tutorial and reference guides (especially the tutorial!), which I will do another time.
Question, doesn't it need to be imported via an svccfg import 'file' before it can be controlled?
That's probably the best way to do it. I put the manifest in /var/svc/manifest/application and rebooted, which seemed to import the service in a disabled state (that's how 'svcs -a' listed it), and then I could enable it with svcadm.
Also, the cfservd_ctl scriptie works fine on it's own, however it fails to start on my 10 system and when I try to clear maintenance on it: Feb 9 10:46:44 vcs01 svc.startd[7]: [ID 652011 daemon.warning] svc:/application/cfservd:default: Method "/lib/svc/method/cfservd_ctl start" failed with exit status 137. Feb 9 10:46:44 vcs01 svc.startd[7]: [ID 748625 daemon.error] application/cfservd:default failed
As you reported in an email to me, this seems to be due to there being no libcrypto in your shared library path, and the one that Sun includes in /usr/sfw/lib serves when you add that directory to the LD_LIBRARY_PATH environment variable in the control script. I don't have this, and the script works for me. I think it's because I linked in SSL statically when I built cfengine on Solaris 10. I copied stuff from /var/svc/manifest/network/ssh.xml then I put together the cfservd manifest, and one of the things I left out was the following dependency block: <dependency name='cryptosvc' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/system/cryptosvc' /> </dependency> It'd be interesting to add that to the dependencies and see how it behaves. I wonder if it would define a shared libray search path or something, or perhaps just cause an error message. Yours, Kurt Reimer
> A search of the help-cfengine and bug-cfengine archives for the > acronym "SMF", as in "Solaris 10 Service Management Facility" > turns up > very little. SMF is a replacement for the familiar system of > rc scripts, > rc.d directories, and run-levels in earlier Solaris and most > other Unix > versions.
_______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine