stop cron before soup upgrades the manager, start cron at the end. add cron state that is in included in common

This commit is contained in:
m0duspwnens
2022-01-12 16:04:10 -05:00
parent 0cf877f169
commit 03b9b74ace
6 changed files with 38 additions and 1 deletions

View File

@@ -360,6 +360,13 @@ run_check_net_err() {
exit $exit_code
fi
}
set_cron_service_name() {
if [[ "$OS" == "centos" ]]; then
cron_service_name="crond"
else
cron_service_name="cron"
fi
}
set_os() {
if [ -f /etc/redhat-release ]; then