I am trying to create an IOT using a Raspberry Pi3 with Ubuntu Core.
I have written my snaps (they do file operations) and I can executed them just fine when I am logged in.
However all processes seem to be killed once I close the ssh session and thus the snaps are no longer executed.
To prove this I packed the following *.sh in a snap and stated it.
while true; do echo "runnning: "$(date) > test.status sleep 5m done
This works as long as i am logged in. If I close the ssh session and open a new one the process is no longer running.
Also checked with
Does any one know how to keep processes (snaps or shell scripts) active on Ubuntu Core when I log out?