Files
Debian-Retzel/Level/Level5/start_watchdog.sh

10 lines
208 B
Bash

cat << 'EOF' > /etc/profile.d/start_watchdog.sh
#!/bin/bash
if [ "$USER" = "crime5" ]; then
if ! pgrep -f "/root/watchdog.py" > /dev/null; then
/usr/bin/python3 /root/watchdog.py &
fi
fi
EOF