Alpana Kumari | b48e6ff | 2022-04-24 23:42:28 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | retries=100 |
Priyanga Ramasamy | 29fbea9 | 2023-10-04 01:28:10 -0500 | [diff] [blame^] | 3 | echo "Checking every 2s for active VPD parsers...." |
jinuthomas | 45d5497 | 2023-07-03 04:36:29 -0500 | [diff] [blame] | 4 | while [ "$retries" -ne 0 ] |
Alpana Kumari | b48e6ff | 2022-04-24 23:42:28 -0500 | [diff] [blame] | 5 | do |
| 6 | sleep 2 |
| 7 | systemctl -q is-active ibm-vpd-parser@*.service |
| 8 | active=$? |
| 9 | if [ $active -ne 0 ] |
| 10 | then |
| 11 | echo "Done wait for active VPD parsers. Exit success" |
| 12 | exit 0 |
| 13 | fi |
jinuthomas | 45d5497 | 2023-07-03 04:36:29 -0500 | [diff] [blame] | 14 | retries="$((retries - 1))" |
Alpana Kumari | b48e6ff | 2022-04-24 23:42:28 -0500 | [diff] [blame] | 15 | echo "VPD parsers still running. Retries remaining: $retries" |
| 16 | done |
| 17 | echo "Exit wait for VPD services to finish with timeout" |
| 18 | exit 1 |