Thursday, July 23, 2009

Quick reference guide to create a new Solaris SMF startup script.

Copy one of the existing manifest files from /var/svc/manifest/
Edit the new file make sure to give it a unique instance name
Copy one of the existing method files from /lib/svc/method/ and edit it
Import the new manifest: /usr/sbin/svccfg -v import /var/svc/manifest/somefile.xml
Verify the new manifest: svcs -a
Start the script: svcadm enable

No comments:

Post a Comment