1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-06-05 22:19:21 +02:00

MycroftOS: Add node-red launcher scripts and service file.

This commit is contained in:
j1nx
2020-09-15 09:37:39 +02:00
parent 68a91d97bc
commit baa7435c33
7 changed files with 166 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
LINES=25
while getopts ":n:" opt; do
case $opt in
n) LINES="$OPTARG"
;;
\?) echo "Unrecognized option -$OPTARG. Usage: node-red-log [-n lines]. For example: node-red-log -n 50" >&2 && exit 1
;;
esac
done
echo -e '\033]2;'Node-RED log'\007'
echo " "
sudo journalctl -f -n $LINES -u nodered -o cat