[mythtv-users] mythbackend exits: why?
Udo van den Heuvel
udovdh at xs4all.nl
Sat Jul 30 14:02:37 UTC 2016
On 30-07-16 00:50, Mark Perkins wrote:
> On 30 July 2016 1:26:50 AM ACST, Udo van den Heuvel <udovdh at xs4all.nl> wrote:
>> 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.
>
> 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?
The pid file exists and has correct contents.
> Also are you using systemd? If yes have you checked the systemd wiki page. Particularly (potentially):
I have to... (Fedora...And yes I know some systemd flaws...)
>> # 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
Very interesting, we have:
[Unit]
Description=MythTV backend service
After=network.target mysqld.service
# uncomment the following line if you will be using the mythweb plugin.
#Wants=httpd.service
[Service]
EnvironmentFile=/etc/sysconfig/mythbackend
ExecStart=/usr/bin/mythbackend --daemon --user mythtv --logpath
/var/log/mythtv/ --pidfile /var/run/mythbackend.pid --syslog none
PIDFile=/var/run/mythbackend.pid
Type=forking
[Install]
WantedBy=multi-user.target
So that all looks OK w.r.t. your description...
Udo
More information about the mythtv-users
mailing list