Skip to content

Instantly share code, notes, and snippets.

@karlbaillie
Created February 18, 2019 09:12
Show Gist options
  • Save karlbaillie/f1957cd23bfb0204698dfdc5f6700116 to your computer and use it in GitHub Desktop.
Save karlbaillie/f1957cd23bfb0204698dfdc5f6700116 to your computer and use it in GitHub Desktop.
Ensure All Currently Running Services Start on Boot (CentOS7 / SystemD)
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