summaryrefslogtreecommitdiff
path: root/sentinel-proxy/files/init
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-04-02 10:10:16 +0200
committerKarel Kočí <cynerd@email.cz>2020-04-02 10:10:16 +0200
commit1419b8fb1325f6aeca43c6e7f33d0b9626a9fcce (patch)
treebe654f791a6a3f88f14cfd310bd994dd8b8add37 /sentinel-proxy/files/init
parenta1d5a6718803a5b9042045be0f114b8b99a2eacd (diff)
downloadopenwrt-personal-pkgs-1419b8fb1325f6aeca43c6e7f33d0b9626a9fcce.tar.gz
openwrt-personal-pkgs-1419b8fb1325f6aeca43c6e7f33d0b9626a9fcce.tar.bz2
openwrt-personal-pkgs-1419b8fb1325f6aeca43c6e7f33d0b9626a9fcce.zip
Add sentinel-proxy
Diffstat (limited to 'sentinel-proxy/files/init')
-rw-r--r--sentinel-proxy/files/init12
1 files changed, 12 insertions, 0 deletions
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
+}