mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-24 00:33:27 +00:00
15 lines
182 B
Bash
15 lines
182 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
python3 "${ROOT_DIRECTORY}"/bazarr.py &
|
||
|
PID=$!
|
||
|
|
||
|
sleep 30
|
||
|
|
||
|
if kill -s 0 $PID
|
||
|
then
|
||
|
echo "Bazarr is still running. We'll kill it..."
|
||
|
kill $PID
|
||
|
exit 0
|
||
|
else
|
||
|
exit 1
|
||
|
fi
|