rc.local not executing commands

Oliver Grawert ogra at ubuntu.com
Thu Nov 5 17:05:02 UTC 2015


hi,
Am Donnerstag, den 05.11.2015, 16:51 +0000 schrieb R Kimber:
> On Thu, 5 Nov 2015 16:04:08 +0100
> silver.bullet at zoho.com wrote:
> 
> > On Thu, 05 Nov 2015 15:50:28 +0100, Oliver Grawert wrote: 
> > >how do you determine that it is not working, note that there is a
> > >"ondemand" system job that enforces the ondemand governor after boot
> > >(has a 60sec delay) which might set different cpufreq defaults after
> > >your code ran ...
> > 
> > So a race condition seemingly is caused by /etc/init.d/ondemand from
> > http://packages.ubuntu.com/vivid/initscripts and the OP needs to disable
> > it first. However, after disabling it, I still recommend to use a
> > systemd unit.
> 
> # This script is executed at the end of each multiuser runlevel.
> 
> Does this not mean that rc.local is the last thing to be run ?
> Would that not overrride /etc/init.d/ondemand ?

it could be that it starts later, but the ondemand script has a "sleep
60" at the top to delay it after your desktop is up to make sure the (in
kernel) default "performance" governor is used during the full boot
process, to get the highest possible performance from the system during
boot.

ciao
	oli





More information about the ubuntu-users mailing list