[mythtv-users] starting with systemd was Who's running Myth on Arch, and what do you think?
James Linder
jam at tigger.ws
Sun Nov 24 05:39:29 UTC 2013
On 24/11/2013, at 12:51 PM, mythtv-users-request at mythtv.org wrote:
>> I still cannot start mythbackend at boot, and as Gary suggested I did read the systemd wiki.
>> Any other suggestions?
>> Thanks
>>
>> ----------------------------------------------------------------------
>> boot then check status
>> ----------------------------------------------------------------------
>> [sandypit] /home/jam [51]% sh mythstatus
>> mythbackend.service - MythTV backend service
>> Loaded: loaded (/etc/systemd/system/mythbackend.service; enabled)
>> Active: failed (Result: exit-code) since Sun, 2013-11-24 12:02:25 WST; 1min 15s ago
>> Process: 1040 ExecStart=/usr/local/bin/mythbackend --logpath /store/mythlogs --loglevel crit (code=exited, status=130)
>> CGroup: name=systemd:/system/mythbackend.service
>>
>>
>> ----------------------------------------------------------------------
>> start myth after boot
>> ----------------------------------------------------------------------
>> sandypit:/home/jam # sh mythstart
>> sandypit:/home/jam # exit
>>
>> [sandypit] /home/jam [53]% sh mythstatus
>> mythbackend.service - MythTV backend service
>> Loaded: loaded (/etc/systemd/system/mythbackend.service; enabled)
>> Active: active (running) since Sun, 2013-11-24 12:04:18 WST; 8s ago
>> Main PID: 2348 (mythbackend)
>> CGroup: name=systemd:/system/mythbackend.service
>> ??? 2348 /usr/local/bin/mythbackend --logpath /store/mythlogs --loglevel crit
>> ??? 2367 /usr/local/bin/mythlogserver --daemon --verbose general --logpath /sto...
>>
>> -----------------------------------------------------------------------
>> are the devices there
>> -----------------------------------------------------------------------
>> [sandypit] /home/jam [54]% ls /dev/dvb/adapter0
>> demux0 dvr0 frontend0 net0
>>
>> ------------------------------------------------------------------------
>> what does the service start file say
>> ------------------------------------------------------------------------
>> [sandypit] /home/jam [55]% head /etc/systemd/system/mythbackend.service
>> [Unit]
>> Description=MythTV backend service
>> After=network.target mysqld.service
>> # Uncomment the following line if you will be using the mythweb plugin on the
>> # same system as mythbackend.
>> #Wants=httpd.service
>> Wants=dev-dvb-adapter0-frontend0.device
>> Wants=dev-dvb-adapter1-frontend0.device
>> After=dev-dvb-adapter0-frontend0.device
>> After=dev-dvb-adapter1-frontend0.device
>> ...
>
> I'd change --loglevel from crit to general and look at the log in
> /store/mythlogs/mythtbackend.201311......
>
> Not sure what the rest of the head /etc/systemd/system/mythbackend.service
> output looks like. Is there a HOME set. That would be reflected in the log.
> Exit code 130 is: GENERIC_EXIT_NO_MYTHCONTEXT.
Bill I guess the key issue is that it does NOT start at boot time and DOES start after boot.
The log is quite terse and succint: I'll try debug rather than info, but the issue is certainly devices not ready yet.
2013-11-24 13:17:02.624843 C [1040/1040] CoreContext main.cpp:116 (main) - Failed to init MythContext.
Nothing else looks interesting.
James
More information about the mythtv-users
mailing list