Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
deb11:setup [2023/04/20 21:50] Bernard Condraudeb11:setup [2023/04/20 22:02] (current) – [System Startup] Bernard Condrau
Line 26: Line 26:
  
 ===== System Startup ===== ===== System Startup =====
-If you are running a Linux distro that uses Systemd, then you may find that your command in ''/etc/rc.local'' file would not run at system boot time. This guide explains how to enable ''/etc/rc.local'' script to run on system startup.+Debian 11 uses Systemd, not SysV, that's why your commands in ''/etc/rc.local'' file would not run at system boot time. This guide explains how to enable ''/etc/rc.local'' script to run on system startup. 
 +  - Create a rc.local unit file, follow [[deb10:rclocal|Services - rc.local]]
   - Create file rc.local in /etc with the following content:<code>vim /etc/rc.local   - Create file rc.local in /etc with the following content:<code>vim /etc/rc.local
 #!/bin/sh -e #!/bin/sh -e
Line 56: Line 57:
 </code> </code>
  
 +  * [[https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd|How to Enable /etc/rc.local with Systemd]]
   * [[https://stackoverflow.com/questions/44797694/where-is-rc-local-in-debian-9-debian-stretch|Where is rc.local in Debian 9 (Debian Stretch)]]   * [[https://stackoverflow.com/questions/44797694/where-is-rc-local-in-debian-9-debian-stretch|Where is rc.local in Debian 9 (Debian Stretch)]]