Skip to content

Commit 7c317c6

Browse files
committed
log to syslog via logger
1 parent a781caa commit 7c317c6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

addon_files/node-red/node-red

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ RED=$RED_DIR/red.js
1111

1212
SETTINGS=$ADDON_DIR/settings.js
1313

14-
LOG=/var/log/node-red.log
15-
1614
Stop () {
1715
PSPID=`ps -o pid,comm,args | awk '{if($3 == "node-red" || $4 ~ /node-red/){print $1}}'`
1816
if [ "$PSPID" != "" ]
@@ -33,7 +31,7 @@ Stop () {
3331

3432
Start () {
3533
echo -n "Starting Node-RED: "
36-
$NODE $RED -s $SETTINGS >> $LOG &
34+
$NODE $RED -s $SETTINGS | logger -p user.info -t node-red &
3735
logger -t homematic -p user.info "started node-red"
3836
echo "OK"
3937
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ccu-addon-node-red",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Node-RED packaged as Homematic CCU addon",
55
"repository": "github:hobbyquaker/ccu-addon-node-red",
66
"private": true,

0 commit comments

Comments
 (0)