This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. === Linux : How to add rc.local in Debian 9 === On Debian 9, the traditional “rc.local” has been deprecated. For traditional Linux users and administrators, there is a way to get it back using SystemD. See the procedure below : 1. Edit the non-existing file “rc-local.service” : <code>nano /etc/systemd/system/rc-local.service</code> 1.1. Add the following content to “/etc/systemd/system/rc-local.service” : <code> [Unit] Description=/etc/rc.local ConditionPathExists=/etc/rc.local [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes SysVStartPriority=99 [Install] WantedBy=multi-user.target </code> 2. Edit the “rc.local” file : <code>nano /etc/rc.local</code> 2.1. Append the generic content below and save the file : <code> #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. exit 0 </code> 3. Change permissions : <code>chmod +x /etc/rc.local</code> 4. Enable the “rc-local” script on boot : <code>systemctl enable rc-local</code> 5. Start the “rc-local” script : <code>systemctl start rc-local.service</code> 6. Check if any error occurred while starting the service : <code>systemctl status rc-local.service</code> You may now append anything you’d like to the traditional “rc.local”. Author: https://www.itechlounge.net/2017/10/linux-how-to-add-rc-local-in-debian-9/