4
votes
How to test /etc/rc.d/rc.local to make sure a command will start successfully at boot?
[Quick Answer]
To run rc.local manually, go to rc.local path (cd /etc/) then do as the following:
$ sudo ./rc.local
If you have an error for execution, do it before that:
$ sudo chmod +x rc.local
4
votes
Accepted
Debian 9 - rc.local deprecated, how to launch python at startup
Debian 9 (like many other current Linux distributions) uses systemd to start and manage your system and services.
You'll be facing a bit of a learning curve compared to adding lines to rc.local but ...
2
votes
Debian 9 - rc.local deprecated, how to launch python at startup
You launch it using a systemd unit, like every other service.
There are numerous tutorials out on the Internet about how to set this up. Or you can just start with a skeleton unit something like:
[...
1
vote
Read Ahead value automatically getting updated at boot
Disable readahead value in tuned.conf.
Run these commands to reload the tuned.conf file:
# tuned-adm profile
# tuned-adm active virtual-guest
After this the values will load from /etc/rc.d/rc.local ...
1
vote
rc.local not being run on Fedora 23
TL;DR: Just create /etc/rc.d/rc.local and make it executable. That's all.
I have no idea why so many articles and blogs mentions the unnecessary and incorrect step of enabling rc-local service unit. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
rc.local × 31linux × 7
ubuntu × 6
boot × 5
init.d × 5
amazon-ec2 × 4
startup × 4
startup-scripts × 4
debian × 3
centos × 2
amazon-web-services × 2
iptables × 2
centos6 × 2
python × 2
fedora × 2
bash × 1
centos7 × 1
cron × 1
postgresql × 1
systemd × 1
ubuntu-14.04 × 1
ubuntu-12.04 × 1
node.js × 1
ruby-on-rails × 1
mongodb × 1