I am trying to shutdown/reboot the system from inside a snap
(snap 2.42 / Ubuntu 16.04LTS)
I have connected the interface and “snap connections mysnap” shows :
shutdown mysnapp:shutdown :shutdown manual
So I guess the interface is connected.
When my cpp code trigger a sysexec of “shutdown -h now” or “shutdown -r now” I don’t get anything (and I also don’t know much how to debug this problem further).
Any hint ?