diff --git a/addon_files/node-red/node-red b/addon_files/node-red/node-red index 65d4b02c..cce457ec 100755 --- a/addon_files/node-red/node-red +++ b/addon_files/node-red/node-red @@ -11,8 +11,6 @@ RED=$RED_DIR/red.js SETTINGS=$ADDON_DIR/settings.js -LOG=/var/log/node-red.log - Stop () { PSPID=`ps -o pid,comm,args | awk '{if($3 == "node-red" || $4 ~ /node-red/){print $1}}'` if [ "$PSPID" != "" ] @@ -33,7 +31,7 @@ Stop () { Start () { echo -n "Starting Node-RED: " - $NODE $RED -s $SETTINGS >> $LOG & + $NODE $RED -s $SETTINGS | logger -p user.info -t node-red & logger -t homematic -p user.info "started node-red" echo "OK" } diff --git a/package.json b/package.json index 53c5a482..d435d263 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccu-addon-node-red", - "version": "0.0.3", + "version": "0.0.4", "description": "Node-RED packaged as Homematic CCU addon", "repository": "github:hobbyquaker/ccu-addon-node-red", "private": true,