mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Adjust healthchecks and fix docker test scripts
This commit is contained in:
@@ -21,12 +21,12 @@ log_success() {
|
||||
}
|
||||
|
||||
# 1. Check if crond is running
|
||||
if pgrep -f "crond" > /dev/null; then
|
||||
log_success "crond is running"
|
||||
if pgrep -f "supercronic" > /dev/null; then
|
||||
log_success "supercronic is running"
|
||||
else
|
||||
log_error "crond is not running"
|
||||
log_error "supercronic is not running"
|
||||
fi
|
||||
|
||||
docker inspect --format='{{json .State.Health}}'
|
||||
# 2. Check if php-fpm is running
|
||||
if pgrep -f "php-fpm" > /dev/null; then
|
||||
log_success "php-fpm is running"
|
||||
|
||||
Reference in New Issue
Block a user