Ensure all services are set for on-boot enable

Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
This commit is contained in:
Harsh Shandilya 2018-04-14 20:30:01 +05:30
parent 594af13217
commit d0c01ccafb
No known key found for this signature in database
GPG key ID: 4AD75758D9EE741C

View file

@ -29,4 +29,5 @@ sleep 5
for service in ${services};do
reportWarning "Restarting ${service}"
service ${service} restart
[[ -f /etc/systemd/system/${service}.service ]] || systemctl enable ${service}
done