[SailfishDevel] Keeping background process running in Sailfish OS
tomek at xiaoka.com
Mon May 4 07:02:14 UTC 2015
Dnia 2015-05-03, nie o godzinie 05:08 +0000, Taixzo pisze:
> Is there a way to make an app launch a daemon process that does not get killed by this?
It is very easy to launch a user-systemd lever service.
Just create .service descriptor file and "systemctl --user start ..."
If it becomes RAM hungry and OOM Killers slaps it, systemd will just
restart it. If you code your daemon to behave on sudden death, no harm
should be done.
It is also very easy to control your service programatically with
systemd D-Bus API. See my pebble app for reference.
/o__ Q: What do agnostic, insomniac dyslexics do at night?
(_<^' A: Stay awake and wonder if there's a dog.
More information about the Devel