On Mon, Jun 16, 2008 at 10:04:42AM -0400, James Carlson wrote: > The existing /etc/rc*.d stuff is there so that software that *must* > run on older versions of Solaris (either because it was originally > written there and never updated for S10 or newer, or because it's > still supported on those old versions) can still run. > > Since that's the purpose, the constraints of S9 and older here are > quite important for the discussion. > > And on S9, if you put "#!/bin/ksh" at the top of your rc script, it > won't work. Never has, never will.
Hmm. I agree that changing it probably isn't a good idea, but there's a subtle difference on S10 as Nico pointed out explicitly: the only way to get a binary or non-/bin/sh script to be executed correctly on S10 is to call it S99foo.sh, which is just plain weird. I think that at the very least this deserves a NOTE in a (which?) manpage, even if it's just a statement that everything is expected to be /bin/sh scripts. > Note that these supposed rc scripts could never have been run on S10 > or anything older, because they won't work. So, they must have either > never been tested on Solaris at all (in which case it's hard to see > how they're supported), or they're specifically designed for > OpenSolaris. Who says they're supported? Numerous vendors will quite happily give you an rc script that runs on Linux and expect you to take it from there. In my case, my backup guys had used the exact same script on my Solaris machines as they do on other folk's Linux boxes (#!/bin/bash, natch). > For what it's worth, if I were one of those software developers trying > to make a universal rc script, I'd very much intentionally restrict > myself to the tiniest subset of Bourne syntax possible, to make sure > it would work everywhere. It'd just never occur to me to pepper the > script with ksh-isms like '[[' any more than I'd attempt to use csh > syntax. > > Am I the last careful designer left? :-< You miss the point that most of us run software that we've bought/acquired from other people. Ceri -- That must be wonderful! I don't understand it at all. -- Moliere -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20080616/b6b320cc/attachment.bin>