[mythtv-users] Upgrade OS -> computer not shutting down when idle.
Douglas Peale
Douglas_Peale at Comcast.net
Thu Apr 24 20:08:25 UTC 2025
On 4/24/25 11:02, faginbagin wrote:
> On 4/24/2025 12:05 AM, Douglas Peale wrote:
>> On 4/23/25 20:45, Mike Hodson wrote:
>>>
>>>
>>> On Wed, Apr 23, 2025, 14:08 Douglas Peale via mythtv-users <mythtv-users at mythtv.org> wrote:
>>>
>>>
>>>
>>> These lines are already in my sudoers file:
>>>
>>> # MythTV stuff for ACPI shutdown & boot
>>> %mythtv ALL = NOPASSWD: /sbin/shutdown, /bin/sh, /usr/bin/setwakeup.sh
>>>
>>>
>>> Since it's being run by a sudo, can you check your sudoer logs [very likely part of the systemd journal] to verify that your
>>> command is being run as expected? If not, then you would need to figure out why, but if it is, perhaps you need to log the
>>> error that is occurring to prevent the shutdown?
>>>
>>> Mike
>>>
>>>
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>> MythTV Forums:https://forum.mythtv.org
>>
>> I can not find any "sudoer logs" I do see sudo commands in auth.log. In the time period that the system should have shut
>> down, I do not see any calls to "sudo shutdown -h now".
>>
>> As a side note, I tried to test the shutdown again this afternoon, but failed due to a scheduled recording occurring in the
>> time I was testing. I will try again later.
>>
>> --
>> Note: the attached .asc file is a cryptographic signature that would allow you to verify that this message has not been modified from what was sent.
>
> I wonder if not providing the full path to shutdown is part of the problem? Maybe /sbin isn't in the PATH when mythbackend
> tries to execute "sudo shoutdown -h now"?
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums:https://forum.mythtv.org
I just ran another test, and the computer shut itself off like it is supposed to.
2025-04-24T12:25:42.946967-07:00 BlackBox mythbackend: mythbackend[2005]: N Scheduler scheduler.cpp:3460 (ShutdownServer)
Running the command to shutdown this computer :-#012#011#011#011#011sudo /usr/sbin/shutdown -h now
2025-04-24T12:25:42.947003-07:00 BlackBox mythbackend: mythbackend[2005]: D Scheduler mythsystemunix.cpp:786 (Fork) Launching:
sudo /usr/sbin/shutdown -h now
2025-04-24T12:25:42.947033-07:00 BlackBox mythbackend: mythbackend[2005]: I Scheduler mythsystemunix.cpp:943 (Fork) Managed
child (PID: 16911) has started! * command=sudo /usr/sbin/shutdown -h now, timeout=0
2025-04-24T13:01:16.160891-07:00 BlackBox mythbackend: mythbackend[2035]: C thread_unknown mythcommandlineparser.cpp:2904
(ConfigureLogging) mythbackend version: fixes/34 [v34.0+fixes.20240210.e3e165a1-0ubuntu6] www.mythtv.org
2025-04-24T13:01:16.160941-07:00 BlackBox mythbackend: mythbackend[2035]: C thread_unknown mythcommandlineparser.cpp:2908
(ConfigureLogging) Qt version: compile: 5.15.12, runtime: 5.15.13
2025-04-24T13:01:16.160972-07:00 BlackBox mythbackend: mythbackend[2035]: I thread_unknown mythcommandlineparser.cpp:2910
(ConfigureLogging) Linux Mint 22.1 (x86_64)
2025-04-24T13:01:16.160996-07:00 BlackBox mythbackend: mythbackend[2035]: N thread_unknown mythcommandlineparser.cpp:2912
(ConfigureLogging) Enabled verbose msgs: general
Now to turn mythfilldatabase back on and see if I can figure out what is going on there.
--
Note: the attached .asc file is a cryptographic signature that would allow you to verify that this message has not been modified from what was sent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250424/798c1d03/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x7B9B5178E6AE112A.asc
Type: application/pgp-keys
Size: 2452 bytes
Desc: OpenPGP public key
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250424/798c1d03/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250424/798c1d03/attachment.sig>
More information about the mythtv-users
mailing list