Photon start-up & shut-down

If I want to run some commands or applications on the Photon
start-up procedure it’s simple - I use “phapps” file.

Is there any similar solution (“phapps” equivalent) when I shutdown my
Photon session and exit to the text mode?

Regards,
Jacek

I got answer from the other source:


No such equivalent is currently built in. Note that photon apps receive a
signal when photon is being shut down so you could implement your own
“watchdog” that connects to photon and would execute whatever you desire
when the shutdown condition occurs.

Hope this helps,
Dave

Regards,
Jacek


If I want to run some commands or applications on the Photon
start-up procedure it’s simple - I use “phapps” file.

Is there any similar solution (“phapps” equivalent) when I shutdown my
Photon session and exit to the text mode?