Thanks for the try, but the line 17 error message was generated by the fact that I don’t have the daemon command installed. Ubuntu doesn’t install the daemon command by default.
Most startup scripts I see in Ubuntu use start-stop-daemon command.
I’d really rather not install system commands that will be used by only one program (call it my OCD techie aesthetic).
Does anyone have a script they use on Ubuntu?
I try not to hack program or script code unless I absolutely have to.