Skip to content

Instantly share code, notes, and snippets.

@polaco1782
Created March 3, 2018 19:12
Show Gist options
  • Save polaco1782/fca499ce3f92df7bec1cb070911bd48b to your computer and use it in GitHub Desktop.
Save polaco1782/fca499ce3f92df7bec1cb070911bd48b to your computer and use it in GitHub Desktop.
Enable rc.local systemd compatibility on Debian 9
cat <<EOF >/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment