-
|
Hello, we use the FreeShow software as text presentation software in our church. It's installed on RPi 5 and integrated to custom made app which control TV and also starts the FreeShow. I have make the systemd service file as follow: Then FreeShow is setted up to enter fullscreen mode at startup. It works correctly. But when I shut down the FreeShow via GUI (cursor), it writes down "Saving ..." message for a few seconds and then closes. When I stop the FreeShow via Systemd, it seems to skip this "Saving ..." step and I think it's not correct. Please, is there and signal code I can send to FreeShow to close "gracefully"? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Nice, you are correct. I actually am not sure if I can detect that in any way. I can add an API action to save and close the app if that helps. |
Beta Was this translation helpful? Give feedback.
-
|
I think the correct way is to listen for SIGTERM signal. It's also the default signal sending by Systemd when stopping a service.
|
Beta Was this translation helpful? Give feedback.
-
|
Please check out the latest beta to see if it's working correctly or not: https://github.com/ChurchApps/FreeShow/releases/tag/v1.4.1-beta.2 |
Beta Was this translation helpful? Give feedback.
I can confirm the FreeShow now correctly listen to SIGTERM and SIGINT and performs saving before shutdown after receiving any of signals. Thank you!