From 7c317c6d7a90f11887a99211df31293406c6a0f3 Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Sun, 29 Apr 2018 02:10:19 +0200 Subject: [PATCH] log to syslog via logger --- addon_files/node-red/node-red | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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,