[mythtv-users] delaying backend startup until the network is up

James Abernathy jfabernathy at gmail.com
Wed Dec 19 14:43:03 UTC 2018


Well, I’ve now tested the use of:

[Unit]
After=network-online.target
Wants=network-online.target

in my /etc/systemd/system/mythtv-backend.service.d/override.conf file.  This is without any full-internet.service enabled and no wait-until-pingable.py script.

It appears that it worked correctly from boot (at least the first time). I’ll reboot some more times to confirm.

The order of starting is Network Manager Wait Online, and Mythtv Backend happened the same second, but in the right order. 2 seconds later I get the first mythhdhrrecorder tuner message.  All tuners are online and working. Below is a portion of the syslog:

Dec 19 09:15:51 Ubuntu-Den systemd[1]: Started Network Manager Wait Online.
Dec 19 09:15:51 Ubuntu-Den systemd[1]: Started MythTV Backend.
Dec 19 09:15:53 Ubuntu-Den mythhdhrrecorder[1391]: Recorder starting, args: --hdhr 1043ECAB --devicename 0 --verbose general --loglevel info --quiet --syslog local7
Dec 19 09:15:54 Ubuntu-Den mythhdhrrecorder[1391]: Adding discovered HDHR specified by deviceid (1043ECAB): 192.168.0.21
Dec 19 09:15:54 Ubuntu-Den mythhdhrrecorder[1391]: Tuning request for channel 50.1 accepted
Dec 19 09:15:54 Ubuntu-Den mythhdhrrecorder[1391]: Recorder stopping
Dec 19 09:15:54 Ubuntu-Den mythhdhrrecorder[1391]: Recorder stopped
Dec 19 09:15:54 Ubuntu-Den mythhdhrrecorder[1430]: Recorder starting, args: --hdhr 1043ECAB --devicename 1 --verbose general --loglevel info --quiet --syslog local7
Dec 19 09:15:55 Ubuntu-Den mythhdhrrecorder[1430]: Adding discovered HDHR specified by deviceid (1043ECAB): 192.168.0.21
Dec 19 09:15:55 Ubuntu-Den mythhdhrrecorder[1430]: Tuning request for channel 4.1 accepted
Dec 19 09:15:55 Ubuntu-Den mythhdhrrecorder[1430]: Recorder stopping
Dec 19 09:15:55 Ubuntu-Den mythhdhrrecorder[1430]: Recorder stopped
Dec 19 09:15:55 Ubuntu-Den mythhdhrrecorder[1501]: Recorder starting, args: --hdhr 1074C841 --devicename 2 --verbose general --loglevel info --quiet --syslog local7
Dec 19 09:15:56 Ubuntu-Den mythhdhrrecorder[1501]: Adding discovered HDHR specified by deviceid (1074C841): 192.168.0.27
Dec 19 09:15:57 Ubuntu-Den mythhdhrrecorder[1501]: Tuning request for channel 4.1 accepted
Dec 19 09:15:57 Ubuntu-Den mythhdhrrecorder[1501]: Recorder stopping
Dec 19 09:15:57 Ubuntu-Den mythhdhrrecorder[1501]: Recorder stopped
Dec 19 09:15:57 Ubuntu-Den mythhdhrrecorder[1540]: Recorder starting, args: --hdhr 1074C841 --devicename 3 --verbose general --loglevel info --quiet --syslog local7
Dec 19 09:15:58 Ubuntu-Den mythhdhrrecorder[1540]: Adding discovered HDHR specified by deviceid (1074C841): 192.168.0.27
Dec 19 09:15:58 Ubuntu-Den mythhdhrrecorder[1540]: Tuning request for channel 4.1 accepted
Dec 19 09:15:58 Ubuntu-Den mythhdhrrecorder[1540]: Recorder stopping
Dec 19 09:15:58 Ubuntu-Den mythhdhrrecorder[1540]: Recorder stopped
Dec 19 09:15:58 Ubuntu-Den mythhdhrrecorder[1549]: Recorder starting, args: --hdhr 1074C841 --devicename 4 --verbose general --loglevel info --quiet --syslog local7
Dec 19 09:15:59 Ubuntu-Den mythhdhrrecorder[1549]: Adding discovered HDHR specified by deviceid (1074C841): 192.168.0.27
Dec 19 09:15:59 Ubuntu-Den mythhdhrrecorder[1549]: Tuning request for channel 4.1 accepted
Dec 19 09:15:59 Ubuntu-Den mythhdhrrecorder[1549]: Recorder stopping
Dec 19 09:15:59 Ubuntu-Den mythhdhrrecorder[1549]: Recorder stopped
Dec 19 09:15:59 Ubuntu-Den mythhdhrrecorder[1560]: Recorder starting, args: --hdhr 1074C841 --devicename 5 --verbose general --loglevel info --quiet --syslog local7
Dec 19 09:16:00 Ubuntu-Den mythhdhrrecorder[1560]: Adding discovered HDHR specified by deviceid (1074C841): 192.168.0.27
Dec 19 09:16:00 Ubuntu-Den mythhdhrrecorder[1560]: Tuning request for channel 4.1 accepted
Dec 19 09:16:00 Ubuntu-Den mythhdhrrecorder[1560]: Recorder stopping
Dec 19 09:16:00 Ubuntu-Den mythhdhrrecorder[1560]: Recorder stopped
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181219/d55506f8/attachment.html>


More information about the mythtv-users mailing list