[mythtv-users] mythbackend exits: why?

Mark Perkins perkins1724 at hotmail.com
Fri Jul 29 22:50:13 UTC 2016


On 30 July 2016 1:26:50 AM ACST, Udo van den Heuvel <udovdh at xs4all.nl> wrote:
>Hello,
>
>On 29-07-16 08:36, Mark Perkins wrote:
>> On 29 July 2016 2:24:51 PM ACST, Udo van den Heuvel
><udovdh at xs4all.nl> wrote:
>>> I see mythbackend exiting not too long after starting up.
>>> Why is this?
>>>
>> Are you using monit to watch the BE. There was an earlier report with
>very similar symptoms caused by incorrectly configured monit.
>
>Monit yes.
>But the backend is started with --pidfile /var/run/mythbackend.pid
>And monit looks for that file.
>
>So there might be a correlation but I am not yet understanding the
>issue.
>
>Udo
>_______________________________________________
>mythtv-users mailing list
>mythtv-users at mythtv.org
>http://lists.mythtv.org/mailman/listinfo/mythtv-users
>http://wiki.mythtv.org/Mailing_List_etiquette
>MythTV Forums: https://forum.mythtv.org

I dont use monit so cant help much. But just to double check the obvious, does the user that you use to run the BE (probably mythtv) have permission to write files to /var/run/ and is that where the pid file is actually being created?

Also are you using systemd? If yes have you checked the systemd wiki page. Particularly (potentially):

> # If using 'Type=forking'
> # 1) you must have --daemon in the command line AND
> # 2) you must have  --pidfile /somewhere in the command line AND
> # 3) you must have a line PIDFILE=/somewhere in the [service] stanza

https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration


More information about the mythtv-users mailing list