Commit Graph

37 Commits

Author SHA1 Message Date
Jeremy Gardais 900cc0611d
Start sge_execd earlier 2021-11-18 11:58:30 +01:00
Jeremy Gardais 123f5afaa2
Also verify that node is a SGE submit host 2021-11-16 10:18:59 +01:00
Jeremy Gardais 194d488340
Test earlier if SGE Master is reachable 2021-04-20 07:41:38 +02:00
Jeremy Gardais ba359c4f75
Exit if sge_qmaster host is not reachable 2021-03-11 14:50:25 +01:00
Jeremy Gardais 3126864255
Use `find … -delete` to remove file with pattern 2021-01-28 11:27:19 +01:00
Jeremy Gardais 9617abc968
Test is_sge_host earlier 2021-01-26 20:02:22 +01:00
Jeremy Gardais 259fbd8531
Exit if SGE isn't available on a host 2021-01-26 18:23:01 +01:00
Jeremy Gardais e02b666049
Test if MACO_TMP_FILE exists… 2021-01-06 13:35:52 +01:00
Jeremy Gardais 5222bdf3e5
Maco upgrade temp file is now stored in /opt/maco 2021-01-06 12:07:31 +01:00
Jeremy Gardais 85c4950d6b
Check maco status before re-enable SGE queue 2021-01-06 11:52:24 +01:00
Jeremy Gardais db0b6fcde9
Deal with non requested reboot (restart SGE earlier)
Check running processes earlier to restart SGE even after a non
requested reboot (power outage, system crash,…).
2020-11-30 16:17:19 +01:00
Jeremy Gardais c1d23c04f6
debug func return 0 to allow chain function 2020-08-20 10:02:11 +02:00
Jeremy Gardais e74122fb21
Start service if process is NOT running… 2020-07-13 16:11:41 +02:00
Jeremy Gardais ded681aeb9
Try to start sge service if required 2020-07-06 17:19:07 +02:00
Jeremy Gardais 7229c8640e
Reorder tests and add infos about force mode 2020-07-06 17:05:06 +02:00
Jeremy Gardais d5186390b3
Correct exit condition if sge_flag_pattern s absent 2020-07-06 16:37:30 +02:00
Jeremy Gardais 8e8c60c405
Ensure to clean useless files 2020-07-06 16:26:55 +02:00
Jeremy Gardais 46ceeb5baf
Use same var prefix "sge_queue_flag" 2020-07-06 16:19:11 +02:00
Jeremy Gardais fdbc34e5cc
Exit if all SGE queues were manually disabled 2020-07-06 16:16:25 +02:00
Jeremy Gardais 47d7060743
find allow to use pattern to verify if file exists 2020-07-06 15:30:32 +02:00
Jeremy Gardais df39d103e6
Exit if nologin file exists 2020-07-06 15:07:23 +02:00
Jeremy Gardais f765e15c7f
Avoid to enable queue during upgrade 2020-07-06 11:30:24 +02:00
Jeremy Gardais 1c6a8fcbc6
Create a file in /opt/ipr/cluster instead of /etc 2020-06-24 14:56:04 +02:00
Jeremy Gardais 652fca2abc
Redirect qmod stdout to /dev/null 2020-06-24 10:40:23 +02:00
Jeremy Gardais 2ffd9ce5bd
Correct the value of watched file 2020-06-23 17:05:48 +02:00
Jeremy Gardais ce8cf73b0e
Refactor CHECK_UPGRADE 2020-06-22 20:46:37 +02:00
Jeremy Gardais de494b76c1
FORCE_MODE implies to don't check for upgrade 2020-06-22 20:42:09 +02:00
Jeremy Gardais d6f266a129
Enable FORCE_MODE for remote host 2020-06-22 20:27:10 +02:00
Jeremy Gardais 205207fd15
Define extra vars in a function 2020-06-22 20:04:46 +02:00
Jeremy Gardais 60c307b933
Fix: Ensure to grep at least one "-" 2020-06-22 18:23:22 +02:00
Jeremy Gardais 4535850b3a
Add --force option to force to enable a queue 2020-06-22 17:12:14 +02:00
Jeremy Gardais 2ac0de9343
Add --hostname option 2020-06-22 14:20:45 +02:00
Jeremy Gardais 04946977d9
Add message on stdout and quiet mode 2020-06-22 14:04:57 +02:00
Jeremy Gardais 2e493e086f
Add options management 2020-06-22 13:48:26 +02:00
Jeremy Gardais 3d01cb8487
(re)enable SGE queue only if disable by a script
Test if /etc/.sge.${QUEUE_NAME}.disable exist
2020-06-22 13:25:34 +02:00
Jeremy Gardais 138aecfb47
Exit if pending upgrades 2020-06-22 12:32:31 +02:00
Jeremy Gardais 270c1eb3fb
New script to enable host's SGE queue(s) 2020-06-22 11:33:31 +02:00