Created
August 2, 2023 00:35
-
-
Save andrewhodel/b65aaa05468f0b17c04b24f2e7839750 to your computer and use it in GitHub Desktop.
rc.local on amazon linux 2023
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
sudo systemctl status rc-local | |
sudo systemctl enable rc-local | |
sudo systemctl start rc-local | |
sudo systemctl status rc-local | |
# it doesn't start because /etc/rc.d/rc.local does not exist | |
sudo ln -s /etc/rc.local /etc/rc.d/rc.local | |
sudo systemctl start rc-local | |
sudo systemctl status rc-local | |
# works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment