Hello,
From the within service, how to detect that service is being terminated because of system shutdown/reboot vs regular service stop e.g. snap stop myapp
?
Under regular systemd
setup, there is a file /run/nologin
created during shutdown and service can check and make decision based on that. How is that under snap?
BR,