FS#45241 - [mythtv] Add Requires= to systemd service

Attached to Project: Community Packages
Opened by Lorenzo Cappelletti (lorcap) - Sunday, 07 June 2015, 01:11 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 10 March 2016, 14:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Antonio Rojas (arojas)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
A line like

Requires=mysqld.service

should be added to mysqld.service's [Unit] because MytTV cannot work without MySQL. This also implies that MytTV is deactivated before MySQL is stopped (see man systemd.unit).
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 10 March 2016, 14:16 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Dave Reisner (falconindy) - Sunday, 07 June 2015, 01:25 GMT
> This also implies that MytTV is deactivated before MySQL is stopped (see man systemd.unit).
No, it does not. Requires says nothing about ordering. You probably mean to include After=mysqld.service in your request.
Comment by Doug Newgard (Scimmia) - Sunday, 07 June 2015, 02:48 GMT
Package is an orphan. Felix, looks like you did the last upgrade, everything since has just been todo list rebuilds.
Comment by Lorenzo Cappelletti (lorcap) - Sunday, 07 June 2015, 08:36 GMT
> No, it does not. Requires says nothing about ordering. You probably mean to include After=mysqld.service in your request.

I see... Do you think Wants= is a better choice? At the moment it lists up network-online.target only.
Comment by Lorenzo Cappelletti (lorcap) - Sunday, 07 June 2015, 08:45 GMT
> Package is an orphan. Felix, looks like you did the last upgrade, everything since has just been todo list rebuilds.

Nonetheless, the package is up-to-date with latest v0.27.4 released on October 15th 2014. And it works like a charm: I'm using it everyday.
Comment by Felix Yan (felixonmars) - Wednesday, 17 June 2015, 07:56 GMT
I think the current approach is following what upstream suggests on https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration and mysqld.service is already under After=

Loading...