Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rc.local]

The tag has no usage guidance.

9
votes
2answers
6k views

What is the correct substitute for rc.local in systemd instead of re-creating rc.local

I cannot find the correct way to execute some local scripts (or very local commands) at systemd, I already know I must not create a service (in systemd a unit) for this kinds of scripts (or I must?)......
2
votes
2answers
191 views

Run a command as root on startup

I need to run this command line at startup: echo 1 > /sys/module/bluetooth/parameters/disable_ertm When I go to terminal type SU enter my password type that command it works perfectly, yet when ...
0
votes
2answers
24 views

HOME not set when running bash from rc.local

I have a line in rc.local to run a simple bash script upon boot. The operating system is Raspbian Stretch 4.14 on a Raspberry Pi 3B+, with a 'Witty Pi 2' power management board (UUGear). bash /home/...
0
votes
2answers
47 views

Debian Stretch drop in boot-time script not using rc.local

I'm setting up a new installation of Debian Stretch. Because it's on custom NAS box, there's one small gripe I have - original software was booted from a USB memory module molded on to the motherboard....
0
votes
1answer
187 views

If rc.local is run as root why can't it touch a file

I wish to execute a script every time on boot-up using /etc/rc.local. My script for example is called startscript.sh which is stored in /home/debian as below. It first tries to create a file called ...
0
votes
0answers
29 views

How to check the history of processes

I'm using Debian running on a BeagleBone Black. I have a script which is supposed to execute when the system starts. The script then should run a python script. I add the command to run this script ...