1
0
Fork 0
haveged/debian/tests/check-service
Simon Chopin ebae0a651d
Verify haveged service is active in autopkgtests, skipped in containers.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-04-25 17:54:38 +02:00

14 lines
271 B
Bash
Executable file

#!/bin/sh
if systemd-detect-virt -qc; then
echo "haveged service will fail in (unprivileged) container, skipping test"
exit 77
fi
if ! systemctl is-active haveged; then
echo "haveged service is not active"
systemctl status haveged
exit 1
fi
exit 0