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:
13
buildroot-external/rootfs-overlay/usr/bin/node-red-log
Executable file
13
buildroot-external/rootfs-overlay/usr/bin/node-red-log
Executable 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
|
Reference in New Issue
Block a user