Ticket #9102 (closed defect: fixed)
Opened 3 years ago
Last modified 2 years ago
Failing myth_system command during shutdown or reboot doesn't try dbus
| Reported by: | superm1@… | Owned by: | paulh |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.24.1 |
| Component: | MythTV - General | Version: | Master Head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Currently, if a user defines a Halt Command or Reboot Command they're attempted first when shutdown or reboot are selected. If the command exits a non-zero return value, the function simply fails rather than continuing to try other venues.
The attached patch modifies this behavior: 0) Set return value to -1 1) Check for an empty command 2a) If non-empty, run myth_system, set return value 2b) If empty, go to 3 3) If the return value was non-zero, try Dbus 4) If dbus fails, try a hardcoded /sbin/halt etc
Attachments
Change History
Changed 3 years ago by superm1@…
- Attachment proper_shutdown_behavior_for_ubuntu.patch added
comment:1 Changed 3 years ago by robertm
- Owner set to paulh
- Status changed from new to assigned
Paul, not sure if you're the best one to pass this to, please bounce it back if you're not interested.
Changed 3 years ago by superm1@…
- Attachment proper_shutdown_behavior_for_ubuntu.2.patch added
updated for sphery's comments in #mythtv
comment:2 Changed 2 years ago by paulh
- Status changed from assigned to closed
- Resolution set to Fixed
- Milestone changed from unknown to 0.24.1
(In 4138b324fd7a)
When shutting down or rebooting keep trying alternate methods if the first ones fail.
The order is user specified command, Dbus then hard coded halt command. Fixes #9102.
comment:3 Changed 2 years ago by paulh
( In ad3c81f086aa)
When shutting down or rebooting keep trying alternate methods if the first ones fail.
The order is user specified command, Dbus then hard coded halt command. Fixes #9102. (cherry picked from commit 4138b324fd7a8c7d9313859e54d4944c55e02519)
comment:4 Changed 2 years ago by Paul Harrison
- Resolution changed from Fixed to fixed
When shutting down or rebooting keep trying alternate methods if the first ones fail.
The order is user specified command, Dbus then hard coded halt command. Fixes #9102.
Changeset: 4138b324fd7a8c7d9313859e54d4944c55e02519

patch to modify shutdown behavior