I use systemd timers for various things and after decommissioning a very 
old machine that used busybox, I recycled a cron script.

I could run the script from the cli, but it never ran via the timer.
Timer was fine, no errors were ever logged anywhere. The expected output 
just didn't occur.

Yesterday, I was looking through all my scripts adding comments to help me 
in the future.

When I opened the script that never runs, I found the problem.

#!/bin/sh does not equal #!/bin/bash

At least when calling a script via the service file fired by a systemd timer

Changed from sh to bash and voila! Change back to sh, fails silently again.

I'm sure >90% of the folks here knew this, but for those like me I figured 
I'd post.

How's this related to WeeWX? I use a systemd timer to backup the database. 
That one works a treat as I used bash, not sh

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c2bd4a26-de51-44ba-8103-8efe020cbee9n%40googlegroups.com.

Reply via email to