Created
March 3, 2018 19:12
-
-
Save polaco1782/fca499ce3f92df7bec1cb070911bd48b to your computer and use it in GitHub Desktop.
Enable rc.local systemd compatibility on Debian 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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