Files
atap/ATAPAuditor/Helpers/ShellScripts/Ubuntu22.04_Debian12/2.3.3.2.sh
T
2026-05-11 09:15:08 +02:00

17 lines
288 B
Bash

#!/usr/bin/env bash
if ! command -v chronyd &>/dev/null; then
# chronyd is not installed
exit 0
fi
if ps -ef | grep -v grep | grep -q "chronyd"; then
if ps -ef | grep -v grep | grep "chronyd" | awk '{print $1}' | grep -q "^_chrony$"; then
exit 0
else
exit 1
fi
else
exit 0
fi