snappy services - auto restart
sergio.schvezov at canonical.com
Sat Apr 25 15:56:30 UTC 2015
On Thu, Apr 23, 2015 at 12:20 PM, Dustin Kirkland <kirkland at canonical.com>
> On Mon, Apr 20, 2015 at 11:05 AM, Myles Caley <myles at firstbuild.com>
> > Is there a way to configure services in snapps to auto-restart if the
> > process dies? Along the same lines, is there a way via snappy CLI to
> > manually restart a service if it does die?
> Hmm, that should be a systemd thing, I suspect.
> Sergio, et al, any ideas?
>From my point of view we should be autorestarting services, if that's not
the case, I guess we want to fix that.
For the latter, we don't have a snappy interface to restart services (we
could expose one, not sure about the granularity though), for now here's a
Manage and check state:
sudo systemctl [start|stop|restart|status]
eg; webdm 0.6 has a service called avahi, so I would
sudo systemctl start webdm_avahi_0.6.service
sudo journalctl -u [package_name]_[service_name]_[package_version].service
e.g.; to check the aforementioned service's logs:
sudo journalctl -u webdm_avahi_0.6.service
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the snappy-app-devel