[mythtv-users] systemd & mythbackend

Udo van den Heuvel udovdh at xs4all.nl
Sun Jun 5 11:01:33 UTC 2011


On 2011-06-05 09:30, Udo van den Heuvel wrote:
> Did anyone here already write a .service file for mythbackend or does
> anybody know the fix for the sysV init script?

Made a bug for the systemd <-> init script issue.
Also made a service, a quick hack:

# cat mythbackend.service
[Unit]
Description=mythbackend daemon
After=mysqld.service

[Service]
EnvironmentFile=/etc/sysconfig/mythbackend
ExecStart=/usr/bin/mythbackend --daemon --user mythtv --logfile
/var/log/mythtv/mythbackend.log --pidfile /var/run/mythbackend.pid
PIDFile=/var/run/mythbackend.pid
Type=forking

[Install]
WantedBy=multi-user.target


I put it in /lib/systemd/system. Should it go in  /etc/systemd/user instead?

After a `systemctl --system daemon-reload` stuff started to work.



Udo


More information about the mythtv-users mailing list