convert the script to check if a job exists and run if not
add an init script