Files
webgui/plugins/dynamix/event/array_started/diskload_start
Tom Mortensen e7cee3ca1c Use php curl library calls to access emthtpd via socket.
Connect emhttpd events to websocket publisher endpoints.
2017-05-22 14:07:21 -07:00

8 lines
195 B
Bash
Executable File

#!/bin/bash
# daemonize the 'diskload' script
DAEMON="/usr/local/emhttp/webGui/scripts/diskload"
if [[ "$(pgrep -f $DAEMON)" == "" ]]; then
logger "Starting $DAEMON"
$DAEMON &>/dev/null &
fi