Opened 16 years ago
Closed 15 years ago
#4184 closed patch (duplicate)
Auto restart mythbackend mythtv-setup
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | backend setup restart auto |
Cc: | Ticket locked: | no |
Description
- 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.
- mythtv-setup stops backend is selected.
- When exiting mythtv-setup, backend is restarted if it was stopped by mythtv-setup.
- 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)
Change History (7)
Changed 16 years ago by
Attachment: | mythtv-setup-autorestartbackend-19112007.diff added |
---|
Changed 16 years ago by
Attachment: | 4184 mythtv-setup-autorestartbackend-18122007.patch added |
---|
Update for svn. no changes
Changed 16 years ago by
Attachment: | 4184 mythtv-setup-autorestartbackend-29122007.patch added |
---|
Update for svn so it applies cleanly.
Changed 16 years ago by
Attachment: | 4184 mythtv-setup-autorestartbackend-29122007.2.patch added |
---|
Apply cleanly and compile :)
Changed 15 years ago by
Attachment: | 23-4184-mythtv-setup-mythui.patch added |
---|
comment:1 Changed 15 years ago by
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.
Automatic backend restart