I had to build from source for my Odroid C1+, and I did so in a directory called "bld" so the complete path to the binary is:
/home/odroid/bld/tvheadend/build.linux/tvheadend
Now I would like to automate startup/restart. This system has upstart, not systemd. I found the git file for the .conf, but I'm new to upstart and I'm hoping someone can give me some pointers.
For one, how do I set the path properly to point to the bld-based location? I don't see a path to the executable in the script, only the settings.
For another, does TVHhave to run as user tvh? Or is it find to add setuid odroid in the script?
Finally, how do I set some of the command line switches like -u? Do I modify the script itself, or is it reading these settings from another location, perhaps /etc/default/tvheadend?