Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#7297 closed enhancement (fixed)

Add an upstart script

Reported by: superm1@… 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)

mythtv-backend.conf (359 bytes) - added by superm1@… 10 years ago.
upstart script
mythtv-backend.2.conf (436 bytes) - added by superm1@… 10 years ago.
updated upstart script

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by superm1@…

Attachment: mythtv-backend.conf added

upstart script

Changed 10 years ago by superm1@…

Attachment: mythtv-backend.2.conf added

updated upstart script

comment:1 Changed 10 years ago by sphery

Resolution: fixed
Status: newclosed

(In [22801]) Add an upstart script to contrib/Linux/init_scripts/ . Fixes #7297.

Thanks to Mario for putting up with all my questions and teaching me all about upstart as he was walking me through everything I needed to know to commit this.

comment:2 Changed 9 years ago by kelly@…

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 9 years ago by Raymond Wagner

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.

Note: See TracTickets for help on using tickets.