Level/Level5/start_watchdog.sh hinzugefügt
This commit is contained in:
9
Level/Level5/start_watchdog.sh
Normal file
9
Level/Level5/start_watchdog.sh
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user