1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/nodered/templates/node-red.service.j2

25 lines
537 B
Django/Jinja

[Unit]
Description=Node-RED
After=syslog.target network.target
[Service]
{% if is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17 %}
ExecStart=/usr/bin/node-red-pi --max-old-space-size=128 -v
{% else %}
ExecStart=/usr/local/bin/node-red-pi --max-old-space-size=128 -v
{% endif %}
Restart=on-failure
KillSignal=SIGINT
# log output to syslog as 'node-red'
SyslogIdentifier=node-red
StandardOutput=syslog
# non-root user to run as
WorkingDirectory=/home/nodered/
User=nodered
Group=nodered
[Install]
WantedBy=multi-user.target