Re: Fwd: rc.local and systemd

2015-05-23 Thread Bob Proulx
Rainer Dorsch wrote: > Nevertheless I am still wondering why it has the failed status, > rc.local has an hard "exit 0" return code (?) : Look at the first line of /etc/rc.local script. > rd@nanette:/etc$ cat rc.local > #!/bin/sh -e The set -e ^^ here is what sets the -e flag for the shell. Bob

Re: Fwd: rc.local and systemd

2015-05-23 Thread Michael Biebl
Am 23.05.2015 um 20:56 schrieb Rainer Dorsch: > Am Montag, 18. Mai 2015, 22:21:42 schrieb Michael Biebl: >> As you can also see, powertop exits with a non-zero return code. Since >> /etc/rc.local uses "set -e", your script exits at this point and the >> service is marked as failed. .. > Hmmse

Re: Fwd: rc.local and systemd

2015-05-23 Thread Rainer Dorsch
Hi Michael, thanks for your prompt reply. Am Montag, 18. Mai 2015, 22:21:42 schrieb Michael Biebl: > Am 18.05.2015 um 22:01 schrieb Rainer Dorsch: > > root@nanette:~# systemctl status rc-local.service > > ● rc-local.service - /etc/rc.local Compatibility > > > >Loaded: loaded (/lib/systemd/sy

Re: Fwd: rc.local and systemd

2015-05-18 Thread Michael Biebl
Am 18.05.2015 um 22:01 schrieb Rainer Dorsch: > root@nanette:~# systemctl status rc-local.service > ● rc-local.service - /etc/rc.local Compatibility >Loaded: loaded (/lib/systemd/system/rc-local.service; static) >Active: failed (Result: exit-code) since Mon 2015-05-18 14:29:04 CEST; 7h >

Re: Fwd: rc.local and systemd

2015-05-18 Thread Rainer Dorsch
Hi Michael, thanks for your quick reply. Am Sonntag, 17. Mai 2015, 11:33:23 schrieben Sie: > > Hello, > > > > I have a jessie system here on which /etc/rc.local is not executed. > > /etc/rc.local is executable > > > > root@nanette:~# ls -l /etc/rc.local > > -rwxr-xr-x 1 root root 328 Jan 31 15: