[Bug 882254] Re: /etc/rc.local is not executed at startup
Dylan Howey
howey014 at umn.edu
Mon Aug 13 08:38:11 UTC 2012
@Matt Miller:
The shebang in the rc.local script reads "#!/bin/bash -e", where the
"-e" means that the script will immediately stop if any command in the
script fails. The fact that file 2 did not appear on your desktop means
that there was a problem with your "xbacklight" command.
Some playing around shows that rc.local runs pretty early on compared to
other things when the system is booting. It's completely possible that
you're trying to run "xbacklight" too early (e.g., the X server probably
hadn't even started yet) and it had failed as a result.
Try putting a short pause before you run that command; do this by adding
the line "sleep 30" before the line where you're trying to dim the
screen. This tells the machine to wait 30 seconds (or whatever amount of
time you want) before moving on to the next line of the script. I'm
willing to bet that this will fix the problem that you're having, as
well as Lindsey334's and Chad William's.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/882254
Title:
/etc/rc.local is not executed at startup
Status in “sysvinit” package in Ubuntu:
Incomplete
Bug description:
/etc/rc.local is not executed at startup in 11.10. In 11.04 this was
not the case. Is there any alternative?
Greetz,
Florian
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: upstart 1.3-0ubuntu10
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Wed Oct 26 22:15:00 2011
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: upstart
UpgradeStatus: Upgraded to oneiric on 2011-10-24 (2 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/882254/+subscriptions
More information about the foundations-bugs
mailing list