Hello,
I run a scheduled Command:
docker exec -i rclone-browser sh < /home/test.sh
So it is a rclone job in an Docker container. ( [HOWTO] Rclone via docker )
But I have the problem, that rclone get problems, if a scond instance of the script is running. So, ist there a way to avoid a second instance?
I tried things like this in the text.sh:
if pidof -x "abc.sh" >/dev/null; then echo "Process already running"fi
But I get an error in the moment I put code in test.sh.
test.sh at the moment:
/usr/bin/rclone bisync DRIVE1:/test Drive2:test --verbose --multi-thread-streams 4 --stats-file-name-length 0 --fast-list
This is running fine, but where can I avoid a second instance of the script? In test.sh or in OMV? An how?
Best Tom