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:

Re: rc.local and systemd

2015-05-17 Thread Ric Moore
On 05/17/2015 03:49 AM, Rainer Dorsch wrote: 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:34 /etc/rc.local root@nanette:~# Before the jessie upgrade, it was execut

Re: rc.local and systemd

2015-05-17 Thread Ric Moore
On 05/17/2015 03:49 AM, Rainer Dorsch wrote: 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:34 /etc/rc.local root@nanette:~# Before the jessie upgrade, it was execut

rc.local and systemd

2015-05-17 Thread Rainer Dorsch
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:34 /etc/rc.local root@nanette:~# Before the jessie upgrade, it was executed properly during startup root@nanette:~# l

Re: [SOLVED] I hate network-manager (was /etc/rc.local and systemd)

2014-08-28 Thread Devrin Talen
Just wanted to chime in and say that this thread was very helpful to me. I had the same issue with a mysterious eth0 entry showing up in NetworkManager a minute or two every time after I woke up my laptop and ruining connectivity. Very glad to have that working now! -- Devrin Talen -- To UN

Re: I hate network-manager (was /etc/rc.local and systemd)

2014-08-25 Thread Tom H
On Sun, Aug 24, 2014 at 6:00 PM, Stephen Powell wrote: > On Sun, 24 Aug 2014 15:44:26 -0400 (EDT), David Baron wrote: >> On Sunday 24 August 2014 11:45:40 Stephen Powell wrote: > I have a static route command in my /etc/rc.local file to define > a route to another network. I won't go into the re

Re: /etc/rc.local and systemd

2014-08-25 Thread Tom H
Resending to the list On Sun, Aug 24, 2014 at 2:12 PM, Erwan David wrote: > Le 24/08/2014 19:31, Tom H a écrit : >> >> With v208, there's a generator, >> "/lib/systemd/system-generators/systemd-rc-local-generator", that >> creates a symlink at boot in >> "/run/systemd/generator/multi-user.target

[SOLVED] I hate network-manager (was /etc/rc.local and systemd)

2014-08-24 Thread Stephen Powell
On Sun, 24 Aug 2014 19:05:52 -0400 (EDT), Michael Biebl wrote: > > If you set managed=true, you actually tell NetworkManager to manage the > interface. So I'm not sure why you are surprised that it does. In a previous release of network-manager, if I didn't set "managed=true" in the [ifupdown] s

Re: I hate network-manager (was /etc/rc.local and systemd)

2014-08-24 Thread Michael Biebl
Am 25.08.2014 00:00, schrieb Stephen Powell: > simply "eth0". (I have "managed=true" in the [ifupdown] section > of /etc/NetworkManager/NetworkManager.conf.) I then select If you set managed=true, you actually tell NetworkManager to manage the interface. So I'm not sure why you are surprised tha

Re: I hate network-manager (was /etc/rc.local and systemd)

2014-08-24 Thread AW
On Sun, 24 Aug 2014 18:00:52 -0400 (EDT) Stephen Powell wrote: > network-manager! Is there anything I can do to make > it leave eth0 totally in the control of ifupdown and to not > touch it at all The settings in /etc/network/interfaces are automatically used instead of network-manager. Or

Re: I hate network-manager (was /etc/rc.local and systemd)

2014-08-24 Thread Charlie
On Sun, 24 Aug 2014 18:00:52 -0400 (EDT) Stephen Powell sent: > The default installation of Debian for a > desktop system (XFCE in my case) installs both ifupdown and > network-manager. It allows ifupdown to manage only the local > loopback interface (lo) and allows network-manager to manage > e

Re: I hate network-manager (was /etc/rc.local and systemd)

2014-08-24 Thread Sven Hartge
Stephen Powell wrote: > I hate network-manager! Is there anything I can do to make it leave > eth0 totally in the control of ifupdown and to not touch it at all, > and to not create a stupid extra connection, and to leave my static > routes, that it did not create, alone? Delete ist. XFCE does

I hate network-manager (was /etc/rc.local and systemd)

2014-08-24 Thread Stephen Powell
On Sun, 24 Aug 2014 15:44:26 -0400 (EDT), David Baron wrote: > On Sunday 24 August 2014 11:45:40 Stephen Powell wrote: >> ... >> Here is how I enabled it. (The following commands are >> executed as root.) >> >> cd /lib/systemd/system/multi-user.target.wants >> ln -s ../rc-local.service rc-local.s

Re: /etc/rc.local and systemd

2014-08-24 Thread David Baron
On Sunday 24 August 2014 11:45:40 Stephen Powell wrote: > Hello, list. > > I just thought I'd pass along something that I recently discovered. > When using sysvinit as the init system, if the file /etc/rc.local > exists and is executable, it will be invoked at the tail end of the > boot process.

Re: /etc/rc.local and systemd

2014-08-24 Thread Tom H
On Sun, Aug 24, 2014 at 11:45 AM, Stephen Powell wrote: > > I just thought I'd pass along something that I recently discovered. > When using sysvinit as the init system, if the file /etc/rc.local > exists and is executable, it will be invoked at the tail end of the > boot process. But under system

Re: /etc/rc.local and systemd

2014-08-24 Thread Brian
On Sun 24 Aug 2014 at 11:45:40 -0400, Stephen Powell wrote: > I just thought I'd pass along something that I recently discovered. > When using sysvinit as the init system, if the file /etc/rc.local > exists and is executable, it will be invoked at the tail end of the > boot process. But under sys

/etc/rc.local and systemd

2014-08-24 Thread Stephen Powell
Hello, list. I just thought I'd pass along something that I recently discovered. When using sysvinit as the init system, if the file /etc/rc.local exists and is executable, it will be invoked at the tail end of the boot process. But under systemd, this file is not executed during boot. Not by de