I would generally agree with you, but we don't have a hard dependency on mysql currently because there is no such thing as a conditional job.
If the patch I posted above doesn't work, I do have another idea though.
We can have two different packages that own the upstart jobs:
mythtv-backend-master
mythtv-backend-slave
These packages would both conflict upon one another, but also both could resolve a dependency of mythtv-backend. The slave package would have a job that doesn't refer to mysql at all. The master package could have a job that depends on mysql for both shutdown and startup fixing the problems.
Marc:
I would generally agree with you, but we don't have a hard dependency on mysql currently because there is no such thing as a conditional job.
If the patch I posted above doesn't work, I do have another idea though.
We can have two different packages that own the upstart jobs:
mythtv- backend- master backend- slave
mythtv-
These packages would both conflict upon one another, but also both could resolve a dependency of mythtv-backend. The slave package would have a job that doesn't refer to mysql at all. The master package could have a job that depends on mysql for both shutdown and startup fixing the problems.