When you write bash script to serve as startup script for systemd, dont forget #!/bin/sh at 1. line of script
Debugging why systemd won't execute it is frustrating experience 😩
@entangled You didn't test it as an independent script before trusting it? Strike your own fingers with a ruler. ;)
@AskChip I wrote the script, it's simple, 4 lines. It works perfectly fine without #!/bin/sh when started manually, but systemd won't execute it.
@AskChip Thing is, systemd doesn't consider bash as default interpreter for script files, which makes sense, but in a concrete situation is a pain to debug
mastodon.technology is shutting down by the end of 2022. Please migrate your data immediately. This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!