Command line arguments / how to run as hts user - solved
I believe I have some trouble with the command line arguments.
$ tvheadend -v tvheadend: version 3.5.247~g098b7de~precise $ tvheadend -? ... Service Configuration -f, --fork Fork and run as daemon -u, --user Run as user -g, --group Run as group -p, --pid Alternate pid path ...
Now, if I start TVH this way:
sudo su hts tvheadend -u hts -g video -p /run/tvheadend.pid
There is no tvheadend.pid, and tvh creates recordings with hts:hts.
(hts is in the video group)
Will it work to start tvheadend directly from root (sudo tvheadend...)?
Ubuntu switched from upstart to systemd. But tvh does not start successfully. See my posts in https://tvheadend.org/boards/5/topics/15781?r=15980
RE: Command line arguments - Added by saen acro about 7 years ago
"sudo su hts" ???
just "sudo hts"
what are permissions of /run
RE: Command line arguments - Added by JP T about 7 years ago
"su hts" doesn't work since hts has no password set. You need to be root to su without password.
/run and /var/run are:
drwxr-xr-x 36 root root 1200 Mai 28 08:19 /run lrwxrwxrwx 1 root root 4 Okt 25 2013 /var/run -> /run/
RE: Command line arguments / how to run as hts user - Added by JP T about 7 years ago
sudo tvheadend -u hts -group video
tvheadend is running as hts and creates the pid file.
and it records using hts:video
systemd service works as well if user=root