meas: restart meas_json on web page load

This commit is contained in:
Monocots 2020-09-17 09:50:32 +00:00
parent 63888df023
commit 11b477e7fb
2 changed files with 4 additions and 1 deletions

View file

@ -8,4 +8,4 @@ if [ ! -p /tmp/json_pipe ] ; then
mkfifo /tmp/json_pipe mkfifo /tmp/json_pipe
fi fi
exec /usr/bin/websocketd --staticdir=/var/www/meas --port=8080 cat /tmp/json_pipe exec /usr/bin/websocketd --staticdir=/var/www/meas --port=8080 /etc/sv/meas-web/scr

View file

@ -0,0 +1,3 @@
#!/bin/sh
sv restart meas-json
exec cat /tmp/json_pipe