The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


gpio-shutdown overlay and Moode SIGTERM handling
#1
Hi,

I just installed the latest moode version on an Audiophonics HiFi streamer (fantastic quality and value for the money - https://www.audiophonics.fr/en/network-a...13100.html).

The device embeds a separate power supply and management board (https://www.audiophonics.fr/en/raspberry...11504.html). Pressing the front panel hardware button shutdowns the system handeld by a gpio-shutdown overlay.

The time needed to shutdown the sytem this way is significantly shorter than when Moode is shutdown through its interface.

Does-it mean than the graceful shutdown is not the same in both cases ? When shutdown is requested through the UI Moode issues a  "mpc stop" and "systemctl stop nginx".

I understand (I am not a Linux expert) that shutdown (as well as reboot, poweroff ?) sends a sigterm signal to Moode (and other processes)

Q1 : does Moode catch the signal to do the housekeeping ?
Q2 : if not, what are the consequences of a hardware shutdown.

Thank you.

Regards.

Philippe
Reply


Messages In This Thread
gpio-shutdown overlay and Moode SIGTERM handling - by chano22000 - 11-25-2020, 11:23 AM

Forum Jump: