Opened 11 years ago
Closed 11 years ago
Last modified 10 years ago
#7297 closed enhancement (fixed)
Add an upstart script
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | MythTV - General | Version: | unknown |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
I'm not sure how many distros are moving to upstart in the near future, but at least Ubuntu 9.10 and Fedora 12 are. They support using an upstart script that will keep the backend running / respawn it after a crash etc.
I'm attaching the upstart script we're using in Ubuntu. This gets installed into /etc/init/mythtv-backend.conf and a symlink is created in /etc/init.d/mythtv-backend to point to point to /lib/init/upstart-job.
That means that you can still use "service mythtv-backend restart" or "/etc/init.d/mythtv-backend restart" etc.
I'm not sure what kind of configure logic is needed to detect if the system is running upstart however.
Attachments (2)
Change History (5)
Changed 11 years ago by
Attachment: | mythtv-backend.conf added |
---|
comment:1 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
This config file appears to result in mythtv backend respawning over and over again on system shutdown. Does it need something more clever in it? This means shutdown takes ages.
As reported on: http://www.linuxquestions.org/questions/showthread.php?p=4061701#post4061701
comment:3 Changed 10 years ago by
This script has since been moved out of contrib and onto the wiki at http://mythtv.org/wiki/Upstart_mythbackend_Configuration . Please seek assistance on the MythTV mailing list or IRC channel, or Mythbuntu message board or IRC channel.
upstart script