As far as I can see, this seems to currently be limited to bash, but I hope that maybe there’s an option I didn’t discover and there actually is a way to replace the shebang line with a custom runner when creating a systemd unit by providing the commands to run through the `.script` utility property.
Set serviceConfig.ExecStart directly instead.
1 Like