net/pagekitec: support status reporting json file
authorKarl Palsson <redacted>
Mon, 23 Mar 2020 22:52:31 +0000 (22:52 +0000)
committerKarl Palsson <redacted>
Tue, 24 Mar 2020 13:17:53 +0000 (13:17 +0000)
Allows luci webapp to report health more dynamically.

Signed-off-by: Karl Palsson <redacted>
net/pagekitec/files/etc/init.d/pagekitec

index 71ea238b5a9f74b206221cf03c87aae5514617b5..189c6c45372763f6fdb86e4f1b1be334c84e258e 100755 (executable)
@@ -21,6 +21,7 @@ add_instance() {
        procd_open_instance
        procd_set_param command $APP
        procd_append_param command -s
+       procd_append_param command -Y json:/tmp/pagekite.status.json
        [ $static -eq 1 ] && procd_append_param command -S
        [ $simple_http -eq 1 ] && procd_append_param command 80 http $kitename 0 $kitesecret
        [ $simple_ssh -eq 1 ] && procd_append_param command 22 raw-22 $kitename 0 $kitesecret
git clone https://git.99rst.org/PROJECT