Opened 12 years ago

Closed 11 years ago

#4184 closed patch (duplicate)

Auto restart mythbackend mythtv-setup

Reported by: Matthew Wire <devel@…> Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords: backend setup restart auto
Cc: Ticket locked: no

Description

  1. When mythtv-setup is run it detects if it is running on the master backend and asks the user if they want to stop it.
  2. mythtv-setup stops backend is selected.
  3. When exiting mythtv-setup, backend is restarted if it was stopped by mythtv-setup.
  4. mythtv-setup offers to run mythfilldatabase if it is the master server.


Additionally, when trying to reconnect to the backend, connectserver uses the WOL command if backend is remote and the start command if the backend is local.


Uses isRunning from http://svn.mythtv.org/trac/ticket/3910
Also uses an updated version of http://svn.mythtv.org/trac/ticket/3279 - this is not included separately since the patches are somewhat intertwined..

Attachments (5)

mythtv-setup-autorestartbackend-19112007.diff (10.4 KB) - added by Matthew Wire <devel@…> 12 years ago.
Automatic backend restart
4184 mythtv-setup-autorestartbackend-18122007.patch (11.5 KB) - added by Matthew Wire <devel@…> 12 years ago.
Update for svn. no changes
4184 mythtv-setup-autorestartbackend-29122007.patch (10.6 KB) - added by Matthew Wire <devel@…> 12 years ago.
Update for svn so it applies cleanly.
4184 mythtv-setup-autorestartbackend-29122007.2.patch (10.7 KB) - added by Matthew Wire <devel@…> 12 years ago.
Apply cleanly and compile :)
23-4184-mythtv-setup-mythui.patch (14.6 KB) - added by Matthew Wire <devel@…> 11 years ago.

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by Matthew Wire <devel@…>

Automatic backend restart

Changed 12 years ago by Matthew Wire <devel@…>

Update for svn. no changes

Changed 12 years ago by Matthew Wire <devel@…>

Update for svn so it applies cleanly.

Changed 12 years ago by Matthew Wire <devel@…>

Apply cleanly and compile :)

Changed 11 years ago by Matthew Wire <devel@…>

comment:1 Changed 11 years ago by Matthew Wire <devel@…>

23-4184-mythtv-setup-mythui
Attached to this ticket rather than creating a new patch since as part of the mythui conversion it also implements the backend stop/start options.
-Converts dialogs to mythui.
-Adds option to stop/start backend and warns user if backend is currently recording.
-Creates a new class in setupdialog.h/cpp which handles the dialogs and menu instead of all being handled in main.

Note(1): auto stop/start backend functionality will only be available if MythbackendStartCommand? and MythbackendStopCommand? are defined in the database settings table.
Note(2): There is currently a mythui bug which causes you to become stuck with a background screen if you cancel the dialog without selecting a button. A possible fix for this is to add a slot that is triggered when a dialog is cancelled. It would also be worth detecting the situation where there are no screens left and exiting the app.
Note(3): Settings GUI for backend stop/start commands has not been reimplemented yet. However, the code can be committed without this since it will automatically disable that facility if the settings are undefined.

comment:2 Changed 11 years ago by Nigel

Resolution: duplicate
Status: newclosed

Replaced by #6290

Note: See TracTickets for help on using tickets.