mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 11:47:01 +05:30
Ensure all services are set for on-boot enable
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
This commit is contained in:
parent
594af13217
commit
d0c01ccafb
1 changed files with 1 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue