[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trying to excute things on boot from /etc/rc.local



On Mon, Sep 30, 2019 at 01:47:47PM -0400, Greg Wooledge wrote:
> On Mon, Sep 30, 2019 at 01:43:13PM -0400, yoda woya wrote:
> > The content of my rc.local  has two lines:
> > /usr/local/bin/ipnat
> > exit 0
> > 
> > However on boot  /usr/local/bin/ipnat  in not executed.
> 
> The first line must be a valid shebang, ideally #!/bin/sh .
> 
> You can omit the exit 0 if you like, but you cannot omit the shebang.
> 
The file, /etc/rc.local, must also be executable.

Regards,

-Roberto

-- 
Roberto C. Sánchez


Reply to: