On my Synology DS215j I have a scheduled task, that is executed every 5 minutes and checks, if a specific python script is running:
# Import environment variables ...
if ! ps ax | grep -q "$PYSCRIPT"; then
echo "$PYSCRIPT is running"...