mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-06-05 22:19:21 +02:00
MycroftOS: Change nodered.service overlay location
This commit is contained in:
@ -0,0 +1,32 @@
|
||||
# systemd service file to start Node-RED
|
||||
|
||||
[Unit]
|
||||
Description=Node-RED graphical event wiring tool
|
||||
Wants=network.target
|
||||
Documentation=http://nodered.org/docs/hardware/raspberrypi.html
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# Run as normal pi user - change to the user name you wish to run Node-RED as
|
||||
User=mycroft
|
||||
Group=mycroft
|
||||
WorkingDirectory=/home/mycroft
|
||||
|
||||
Nice=5
|
||||
Environment="NODE_OPTIONS=--max_old_space_size=512"
|
||||
# uncomment and edit next line if you need an http proxy
|
||||
#Environment="HTTP_PROXY=my.httpproxy.server.address"
|
||||
# uncomment the next line for a more verbose log output
|
||||
#Environment="NODE_RED_OPTIONS=-v"
|
||||
#ExecStart=/usr/bin/env node $NODE_OPTIONS red.js $NODE_RED_OPTIONS
|
||||
ExecStart=/usr/bin/env node-red-pi $NODE_OPTIONS $NODE_RED_OPTIONS
|
||||
# Use SIGINT to stop
|
||||
KillSignal=SIGINT
|
||||
# Auto restart on crash
|
||||
Restart=on-failure
|
||||
# Tag things in the log
|
||||
SyslogIdentifier=Node-RED
|
||||
#StandardOutput=syslog
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user