Ceri Davies writes: > On Mon, Jun 16, 2008 at 03:24:26PM -0400, James Carlson wrote: > > cat >/etc/init.d/mything <<EOF > > #!/sbin/sh > > *bzzt!* /bin/sh, thank you, very much.
bzzt, yourself. :-/ /bin is just a symlink to /usr/bin, and if your script must run before /usr is mount (or must clean up after it has unmounted), then using /bin/sh is a mistake. I chose #!/sbin/sh intentionally there. > > ... but there are probably better ports that can be done. I don't > > think I agree that rewriting the legacy support for rc scripts is a > > necessary or desirable component of that. It's not clear that it'd > > even work right, as it obviously assumes that all of the bits install > > the same way on Solaris as on these other systems (the paths are the > > same), and may well make many other assumptions. > > Not given "even if all that you need to do is rewire the rc script". > You're flapping between extremes. If all that you have to do is rewire the rc script, then I think you're extraordinarily lucky. Even so, that's still porting. I've compiled all sorts of code, and rarely run into such cases among things that haven't been ported to Solaris yet. (And if it's advertised as having already been ported over, then you shouldn't have to do _anything_ special, including hacking up rc scripts.) -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677