Initial BitNet s9pk package with SSH access
This commit is contained in:
10
scripts/health_check.sh
Executable file
10
scripts/health_check.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Check if SSH daemon is running
|
||||
if pgrep -x sshd > /dev/null; then
|
||||
exit 0
|
||||
else
|
||||
echo "SSH daemon is not running"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user