Start sge_execd earlier

This commit is contained in:
Jeremy Gardais 2021-11-18 11:58:30 +01:00
parent c5acd253ac
commit 900cc0611d
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 10 additions and 7 deletions

View File

@ -501,6 +501,16 @@ main() { # {{{
## Define all vars according the selected options
define_vars
## If we need to watch for processes
if [ "${CHECK_PROCESS}" -eq "0" ]; then
## If nothing related to SGE is currently running
### Try to start the SGE execd systemd service
### Exit with error if the service can't start
is_proc_running "${sge_proc_pattern}" \
|| systemctl --quiet start sge_execd.service > /dev/null 2>&1 \
|| exit 4
fi
## If we need to watch for upgrades
if [ "${CHECK_UPGRADE}" -eq "0" ]; then
## If APT package upgrade is available
@ -530,13 +540,6 @@ main() { # {{{
### Exit
is_proc_running "${maco_proc_pattern}" \
&& exit 0
## If nothing related to SGE is currently running
### Try to start the SGE execd systemd service
### Exit with error if the service can't start
is_proc_running "${sge_proc_pattern}" \
|| systemctl --quiet start sge_execd.service > /dev/null 2>&1 \
|| exit 4
fi
## If we need to watch files