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 😩

· · Web · 0 · 0 · 0

@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.

@entangled Strange, thought I had them not run back when i forgot that line.

@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

@entangled "…systemd…is [a] frustrating experience…" :-P

Sign in to participate in the conversation
Mastodon for Tech Folks

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!