[solved] Using mythtv online and offline

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
jhmgbl
Newcomer
Posts: 14
Joined: Mon Apr 14, 2014 4:19 pm
Germany

[solved] Using mythtv online and offline

Post by jhmgbl »

Hallo,
I have setup a mythtv-server that starts and does shutdown automatically. Mythbackend has the IP 192.168.2.25. This works fine if the server is connected to my router and wlan0 has the ip 192.168.2.25 . The problem is that at night I switch off the router and so the server hast only localhost as IP. Then /etc/init/mythtv-backend.conf prevents mythbackend to start. Here is the code:

Code: Select all

start on (local-filesystems and net-device-up IFACE!=lo and started udev-finish)
If I delete IFACE!=lo mythbackend starts offline, but this configuration does not work, when the router is connected.

Any ideas how to get mythbackend working online and offline?

Regards Hans
User avatar
rwagner
Developer
Posts: 217
Joined: Thu Feb 06, 2014 11:37 pm
United States of America

Re: Using mythtv online and offline

Post by rwagner »

For now, leave your router on and just turn off your modem, or configure your machine with a static IP instead of using DHCP.
jhmgbl
Newcomer
Posts: 14
Joined: Mon Apr 14, 2014 4:19 pm
Germany

Re: Using mythtv online and offline

Post by jhmgbl »

Hello,

I use a static IP on my wlan interface and I don't want to leave the router on all day.

Regards Hans
User avatar
rwagner
Developer
Posts: 217
Joined: Thu Feb 06, 2014 11:37 pm
United States of America

Re: Using mythtv online and offline

Post by rwagner »

If you have a static IP, then there should be no problem. Is it a static IP through something like NetworkManager, that only applies the address to the interface while the interface is actually connected?
jhmgbl
Newcomer
Posts: 14
Joined: Mon Apr 14, 2014 4:19 pm
Germany

Re: Using mythtv online and offline

Post by jhmgbl »

Thank you for your answer. The IP is through network-manager. I will assign an IP in the interfaces-settings.

Regards

Hans
jhmgbl
Newcomer
Posts: 14
Joined: Mon Apr 14, 2014 4:19 pm
Germany

Re: Using mythtv online and offline

Post by jhmgbl »

Hallo,

I can set a static IP for eth0 in /etc/network/interfaces, but then online mode with wlan0 (Network-Manager) does not work any more.

Regards Hans
jhmgbl
Newcomer
Posts: 14
Joined: Mon Apr 14, 2014 4:19 pm
Germany

Re: Using mythtv online and offline

Post by jhmgbl »

Hallo,

I uninstalled NM, setup a static wlan interface in interfaces and now it works!

Regards

Hans

SOLVED
Post Reply