Command line arguments / how to run as hts user - solved
Added by JP T over 9 years ago
Hi,
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...)?
Background:
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
thanks
Replies (3)
RE: Command line arguments - Added by saen acro over 9 years ago
"sudo su hts" ???
just "sudo hts"
what are permissions of /run
RE: Command line arguments - Added by JP T over 9 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 over 9 years ago
now tried
sudo tvheadend -u hts -group video
worked. :)
tvheadend is running as hts and creates the pid file.
and it records using hts:video
Great!
systemd service works as well if user=root