[OpenIndiana-discuss] Customized startup commands?
dswartz at druber.com
Sun Oct 9 14:45:45 UTC 2011
Sure, but if you just have one simple command, it's really overkill to write
a manifest and such. All I want is to do "devfsadm -C" to clean stale
devices. Oh well...
From: Peter Tribble [mailto:peter.tribble at gmail.com]
Sent: Sunday, October 09, 2011 8:33 AM
To: Discussion list for OpenIndiana
Subject: Re: [OpenIndiana-discuss] Customized startup commands?
On Sun, Oct 9, 2011 at 4:38 AM, Dan Swartzendruber <dswartz at druber.com>
> Okay, I've got to be missing something here. I'm used to the linux/bsd
> where you put per-server commands in /etc/rc.local, executed after all
> There seems to be no equivalent in opensolaris, and google has NOT been my
> friend here :( What am I missing?
So, you can put startup scripts in /etc/rc3.d, and as long as they're
and start with S, you're done. This is pretty similar to linux. The
rc.local doesn't exist.
The official way is to write an SMF manifest and import it. This actually
that hard, if you just take an existing manifest (look under
that is close to what you want to do. Often you end up with a manifest that
simply calls your old rc script (conventionally placed into
Now, the SMF way actually has a lot more power than merely starting things
up at boot, and it's how the normal system services are managed, so it's
worth learning (look at the svcs, svcadm, and svccfg commands).
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
OpenIndiana-discuss mailing list
OpenIndiana-discuss at openindiana.org
More information about the OpenIndiana-discuss