Where the heck is rc.local in Debian 9?

Thanks to a quick search here is how to re-create it:

cat </etc/rc.local
#!/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
EOF
chmod +x /etc/rc.local
systemctl daemon-reload
systemctl start rc-local
systemctl status rc-local

Nice.

3 thoughts on “Where the heck is rc.local in Debian 9?

  1. Well, just like the stackoverflow answer that you linked said, rc.local is being deprecated.

    It would be better if you learn to do, whatever you wanted to do on rc.local, directly on systemd, IMHO.

Leave a Reply