Created
February 18, 2019 09:12
-
-
Save karlbaillie/f1957cd23bfb0204698dfdc5f6700116 to your computer and use it in GitHub Desktop.
Ensure All Currently Running Services Start on Boot (CentOS7 / SystemD)
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
for i in $(systemctl list-units --type=service --state=running | tail -n +2 | grep ".service" | awk '{print $1}'); do systemctl enable $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment