Opened 13 years ago
Closed 13 years ago
Last modified 13 years ago
#9102 closed defect (fixed)
Failing myth_system command during shutdown or reboot doesn't try dbus
Reported by: | 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 (2)
Change History (6)
Changed 13 years ago by
Attachment: | proper_shutdown_behavior_for_ubuntu.patch added |
---|
comment:1 Changed 13 years ago by
Owner: | set to paulh |
---|---|
Status: | new → assigned |
Paul, not sure if you're the best one to pass this to, please bounce it back if you're not interested.
Changed 13 years ago by
Attachment: | proper_shutdown_behavior_for_ubuntu.2.patch added |
---|
updated for sphery's comments in #mythtv
comment:2 Changed 13 years ago by
Milestone: | unknown → 0.24.1 |
---|---|
Resolution: | → Fixed |
Status: | assigned → closed |
(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 13 years ago by
( 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 13 years ago by
Resolution: | Fixed → 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