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

2019-10-01 Thread didier . gaumet
Le mardi 1 octobre 2019 15:00:05 UTC+2, Greg Wooledge a écrit : > You don't have to enable the rc-local service in Debian. It's already > enabled. [...] My mistake, I should have verified Thank you Greg :-)

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

2019-10-01 Thread yoda woya
On Tue, Oct 1, 2019 at 4:15 AM wrote: > Le lundi 30 septembre 2019 19:50:04 UTC+2, yoda woya a écrit : > > 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. > > > > > > How can I get debian

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

2019-10-01 Thread Roberto C . Sánchez
On Tue, Oct 01, 2019 at 09:28:05AM -0400, Gene Heskett wrote: > On Tuesday 01 October 2019 08:57:26 Greg Wooledge wrote: > > > On Tue, Oct 01, 2019 at 12:58:22AM -0700, didier.gau...@gmail.com > wrote: > > > Is your system a Systemd one (by default in Debian), you have to > > > enable rc.local: >

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

2019-10-01 Thread Gene Heskett
On Tuesday 01 October 2019 09:34:48 Greg Wooledge wrote: > On Tue, Oct 01, 2019 at 09:28:05AM -0400, Gene Heskett wrote: > > On Tuesday 01 October 2019 08:57:26 Greg Wooledge wrote: > > > On Tue, Oct 01, 2019 at 12:58:22AM -0700, didier.gau...@gmail.com > > > > wrote: > > > > Is your system a Syst

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

2019-10-01 Thread Greg Wooledge
On Tue, Oct 01, 2019 at 09:28:05AM -0400, Gene Heskett wrote: > On Tuesday 01 October 2019 08:57:26 Greg Wooledge wrote: > > > On Tue, Oct 01, 2019 at 12:58:22AM -0700, didier.gau...@gmail.com > wrote: > > > Is your system a Systemd one (by default in Debian), you have to > > > enable rc.local: >

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

2019-10-01 Thread Gene Heskett
On Tuesday 01 October 2019 08:57:26 Greg Wooledge wrote: > On Tue, Oct 01, 2019 at 12:58:22AM -0700, didier.gau...@gmail.com wrote: > > Is your system a Systemd one (by default in Debian), you have to > > enable rc.local: > > https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-wit >

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

2019-10-01 Thread Greg Wooledge
On Tue, Oct 01, 2019 at 12:58:22AM -0700, didier.gau...@gmail.com wrote: > Is your system a Systemd one (by default in Debian), you have to enable > rc.local: > > https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd > You don't have to enable the rc-local service in D

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

2019-10-01 Thread didier . gaumet
Le lundi 30 septembre 2019 19:50:04 UTC+2, yoda woya a écrit : > 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. > > > How can I get debian to execute the content of my rc.local file.  BTW after >

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

2019-09-30 Thread yoda woya
added #!/bin/sh and still the same problem 🤕🤕 On Mon, Sep 30, 2019 at 1:48 PM 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 no

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

2019-09-30 Thread Roberto C . Sánchez
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

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

2019-09-30 Thread Greg Wooledge
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

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

2019-09-30 Thread Reco
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. systemd-rc-local-generator(8) Reco

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

2019-09-30 Thread yoda woya
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. How can I get debian to execute the content of my rc.local file. BTW after boot, /usr/local/bin/ipnat can be executed manually without issues. Any assistance would be