rc.local not start at the boot

jd1008 jd1008 at gmail.com
Thu Oct 30 04:35:23 UTC 2014


On 10/29/2014 10:20 PM, Ed Greshko wrote:
> On 10/30/14 12:06, Angelo Moreschini wrote:
>> I also thought that I setting controls the command in a different way could be the solution.
>> But it did not was so.
>> The question is now, however, morelimited: it is about understanding why a script that can be run from the command line, does not run inside the file /etc/rc.d/rc.local
>>
> Normally when a command doesn't run correctly in a start-up environment it has to do with either permissions (file ownership), or something associated with environment variables.  But, usually you get an error recorded and can see and fix the problem with ease.
>
> This was different.  I don't know why it needed to be done this way.  But, works.....  Maybe I'll do a bit more research but I may chalk it up to "PFM".  (Pure "Freakin" Magic)
>
> So, hope all is well for you now.....
>
Ed I think it has to be shell environment, as you suspect.
I was wondering if Angelo can set up his script which is
run from rc.local to first source a file which sets up the
run env variables to be identical to his shell env when
he runs his script from the command line.

Just my $.02's worth.



More information about the users mailing list