freeleaps-pub/devbox/devbox.local/entrypoint_restore.sh
2025-01-16 08:41:50 +00:00

19 lines
348 B
Bash
Executable File

#!/bin/bash
# start SSH Daemon
if ! pgrep -x "sshd" > /dev/null
then
echo "Starting sshd..."
/usr/sbin/sshd -D &
fi
sleep 60
# start Docker Daemon
if ! pgrep -x "dockerd" > /dev/null
then
rm -rf /var/run/docker.pid || true
echo "Starting Docker Daemon..."
/usr/bin/dockerd --pidfile="" --storage-driver vfs &
disown -a
fi