-------- Original Message -------- Subject: [smf-discuss] new service questions From: Cynthia Eastham <cynthia.east...@sun.com> To: smf-discuss at opensolaris.org Date: Sat Feb 03 2007 17:27:44 GMT+0100 (CET)
> I'm adding a new transient service which needs to run once on boot. It > starts a script which runs from /usr/sbin, reads data from /usr, and > reads/writes to /var and /tmp. I have a couple of questions regarding > dependency specification and enabling of the service on boot: > > 1. Is it sufficient to just specify svc:/system/filesystem/minimal as a > dependency since "minimal" requires svc:/system/filesystem/usr and "usr" > requires svc:/system/filesystem/root? Yes it is. Once svc:/system/filesystem/minimal is online, your service will have full access to /usr, /var and /tmp. > > 2. The service will be disabled by default, however, since I want to > make sure it runs on boot, do I need to set <instance name='default' > enabled='true'> in the generic_open and generic_limited_net profiles? That's correct, you need to update generic_open and generic_limited_net profiles. You also need to modify the preinstall/postinstall of the package that delivers your service to enable it on upgrade. Finally, you probably want to update the bfu script to enable your service after a bfu. -- Renaud