Simplify self healing capabilities of Supervisor service (#952)

* Simplify self healing capabilities of Supervisor service

Instead of relying on time based information on how long the container
has been running use a startup marker file to infer if the last startup
has been successful.

* Update buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor

Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>

Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
This commit is contained in:
Stefan Agner
2020-11-04 10:05:38 +01:00
committed by GitHub
parent 8ed04ed73c
commit 2d257bd671
2 changed files with 12 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ StartLimitIntervalSec=60
StartLimitBurst=5
ConditionPathExists=/run/dbus/system_bus_socket
ConditionPathExists=/run/docker.sock
RuntimeDirectory=supervisor
[Service]
Type=simple