10 lines
208 B
Bash
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
|