1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Fix node red executable path in service file per host OS

This commit is contained in:
Anish Mangal 2019-01-16 03:43:41 +00:00
parent cdbbfecf63
commit b534ecdf56

View file

@ -3,7 +3,11 @@ 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