mirror of
https://gitlab.com/octospacc/WinDog.git
synced 2025-01-02 19:18:51 +01:00
19 lines
234 B
Bash
19 lines
234 B
Bash
|
#!/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
|