meas: restart meas_json on web page load
This commit is contained in:
parent
63888df023
commit
11b477e7fb
2 changed files with 4 additions and 1 deletions
|
@ -8,4 +8,4 @@ if [ ! -p /tmp/json_pipe ] ; then
|
|||
mkfifo /tmp/json_pipe
|
||||
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
|
||||
|
|
3
modules/rhizo_base/files/etc/sv/meas-web/scr
Executable file
3
modules/rhizo_base/files/etc/sv/meas-web/scr
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
sv restart meas-json
|
||||
exec cat /tmp/json_pipe
|
Loading…
Add table
Add a link
Reference in a new issue