do not do anything if script was sourced (useful for external unit tests)
sanity test
refactoring
create first success file /var/run/sdwdate/first_success