Execution of /etc/rc.d/rc.local

Ed Greshko Ed.Greshko at greshko.com
Wed May 16 16:19:52 UTC 2012


On 05/17/2012 12:14 AM, Kevin Fenzi wrote:
> On Tue, 15 May 2012 16:52:08 -0700
> Geoffrey Leach <geoff at hughes.net> wrote:
>
>> root at puget[10]->cat /etc/rc.d/rc.local
>> #! /bin/sh
> ^ you have a " " here that shouldn't be there. 
>
> Should be simply: "#!/bin/sh"
>
>
That was my theory too....  But I like to test my theories....  So I created an
rc.local file with the following contents...

#! /bin/sh -e

#exit 0

touch /tmp/XXXX

and it worked just fine....


-- 
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage


More information about the users mailing list