You are not logged in.

#1 2013-12-24 19:44:39

Belgarath
Member
Registered: 2013-12-24
Posts: 6

(SOLVED) Tvheadend: Configuration lost on reboot

Hello.

I managed to configure Tvheadend on my computer and it works great.

My problem is when the computer restarts: For some reason the settings are lost on reboot and I have to configure everything again every time when I turn the computer on.

I save the changes when the program is configurated but the computer loses the settings at start.

Please, help me.

Last edited by Belgarath (2013-12-25 23:38:22)

Offline

#2 2013-12-24 19:54:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: (SOLVED) Tvheadend: Configuration lost on reboot

Are you configuring it using $HOME/.hts/tvheadend?
What exactly happens - is the file empty after reboot?

Offline

#3 2013-12-25 02:27:52

Belgarath
Member
Registered: 2013-12-24
Posts: 6

Re: (SOLVED) Tvheadend: Configuration lost on reboot

I configured the program from the web interface and I can see the TV channels and the EPG information even from other computers on my network but curiously the program does not create the folder you mention,

I do not know why that folder is not created and I do not know where it saves the data.

The .hts folder does not appear anywhere in my home directory: It is not in ~/.hts  and is not in ~/.config/.hts or similar places.

Should I create  ~/.hts/tvheadend  manually? If so, what should I put in that file?


Excuse me for my deficient english.

Offline

#4 2013-12-25 11:59:22

Belgarath
Member
Registered: 2013-12-24
Posts: 6

Re: (SOLVED) Tvheadend: Configuration lost on reboot

When I install tvheadend it create me the user "hts" I can see it at the end of /etc/passwd

hts:x:1337:91::/home/hts:/bin/false

But the directory /home/hts not exist.

In  /etc/passwd I changed   hts:x:1337:91::/home/hts:/bin/false    to    hts:x:1337:91::/home/sobek:/bin/false     "sobek" is my user name, then I created the ~/.htc directory manually and reboot.

Next, I configure the program from the web interface and save all changes but the configuration is lost when I reboot my computer again and the ~/.htc directory is empty.

Offline

#5 2013-12-25 23:37:53

Belgarath
Member
Registered: 2013-12-24
Posts: 6

Re: (SOLVED) Tvheadend: Configuration lost on reboot

I can solve!

I edit  /usr/lib/systemd/system/tvheadend.service   and I changed the line

ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u hts -g video

to

ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u sobek -g video

Where "sobek" is my user name.

Save changes and restart systemd service and now the computer keep the configuration after reboot.

Thanks.

Offline

Board footer

Powered by FluxBB