[mythtv] [mythtv-commits] Ticket #10236: Systemd Mythbackend startup does not check for existing process
Richard Shaw
hobbes1069 at gmail.com
Fri Jan 6 01:28:40 UTC 2012
Can you provide a copy of the full mythbackend.service file? I didn't
use that comment for the RPM Fusion service file and it may not be
necessary.
After several iterations we ended up with Type=simple. That way you
don't have to worry about a PID file. Systemd will take care of it and
kill it when you run systemctl stop mythbackend.service.
Other than one reported instance of mythbackend trying to connect to
mysql before it was ready to accept connections, which is either a
systemd or mysql bug, it's worked quite well.
Richard
Here's the full unit file:
[Unit]
Description=MythTV backend service
After=network.target mysqld.service
[Service]
Type=simple
Environment=MYTHCONFDIR=/etc/mythtv
Environment=HOME=/usr/share/mythtv
User=mythtv
ExecStart=/usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log
[Install]
WantedBy=multi-user.target
More information about the mythtv-dev
mailing list