From 01fea78ee32a576f78ce5ca89af0ff9a14e5b6e5 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Mon, 16 Oct 2017 12:07:14 +0100 Subject: [PATCH] behaviour: Restart on exit Specify the restart behaviour in the service file to ensure that if the proxy exits for any reason (except being told to by `systemctl(1)`), it will be automatically restarted. Fixes #152. Signed-off-by: James O. D. Hunt --- cc-proxy.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/cc-proxy.service.in b/cc-proxy.service.in index 2914992..1c8a5c8 100644 --- a/cc-proxy.service.in +++ b/cc-proxy.service.in @@ -5,6 +5,7 @@ Documentation=https://github.com/clearcontainers/proxy [Service] ExecStart=@libexecdir@/clear-containers/cc-proxy LimitNOFILE=infinity +Restart=always [Install] WantedBy=multi-user.target