From 1419b8fb1325f6aeca43c6e7f33d0b9626a9fcce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 2 Apr 2020 10:10:16 +0200 Subject: Add sentinel-proxy --- sentinel-proxy/files/init | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sentinel-proxy/files/init (limited to 'sentinel-proxy/files/init') diff --git a/sentinel-proxy/files/init b/sentinel-proxy/files/init new file mode 100644 index 0000000..5737dce --- /dev/null +++ b/sentinel-proxy/files/init @@ -0,0 +1,12 @@ +#!/bin/sh /etc/rc.common + +USE_PROCD=1 +START=95 +STOP=10 + +start_service() { + procd_open_instance + procd_set_param command /bin/sh -c 'sentinel-certgen certs && exec sentinel-proxy' + procd_set_param respawn 600 5 5 + procd_close_instance +} -- cgit v1.2.3