mirror of
https://gitlab.com/octospacc/WinDog.git
synced 2025-02-13 01:50:51 +01:00
19 lines
234 B
Bash
Executable File
19 lines
234 B
Bash
Executable File
#!/bin/sh
|
|
|
|
windog_start(){
|
|
rm -f ./.WinDog.Restart.lock
|
|
python3 ./WinDog.py &
|
|
}
|
|
|
|
cd "$( dirname "$( realpath "$0" )" )"
|
|
windog_start
|
|
|
|
while true
|
|
do
|
|
if [ -f ./.WinDog.Restart.lock ]
|
|
then
|
|
kill "$!"
|
|
windog_start
|
|
fi
|
|
sleep 5
|
|
done |