More SMF
The script used to kick off and kill the samba daemons is here. This should be copied to a suitable system location - I chose the default service methods directory: /lib/svc/method/.
The service bundle file is here. You could save this to the system services directory: /var/svc/manifest/network, but I chose just to keep it in my homedir as I am only experimenting with it. I guess if you plan to use LiveUpgrade in the future, it might be worthwhile copying this file over as I'm not sure how or whether the services database is rebuilt during Live Upgrade.
The service bundle is loaded into the SMF using the command:
# svccfg validate samba.xml # svccfg import samba.xml
Note that I have marked it as disabled by default. To enable it, run:
# svcadm enable network/samba
That was easy, wasn't it ?
Posted by Iouri Goussev on February 17, 2005 at 08:33 AM GMT #
FYI: there's a typo in the second svccfg line: "scvcfg".
Dmitri
Posted by trembovetski on March 19, 2005 at 02:18 AM GMT #
Posted by David Bryant on January 14, 2007 at 09:08 PM GMT #