2018-06-27 11:17:44 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Node-RED
|
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
2019-01-31 22:19:35 +00:00
|
|
|
# Ansible template HAD: if is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17
|
|
|
|
# Ansible template HAD: if is_debuntu
|
2019-01-16 03:43:41 +00:00
|
|
|
ExecStart=/usr/bin/node-red-pi --max-old-space-size=128 -v
|
2019-01-31 22:19:35 +00:00
|
|
|
# Ansible template HAD: else
|
2019-01-30 04:32:29 +00:00
|
|
|
# ExecStart=/usr/local/bin/node-red-pi --max-old-space-size=128 -v
|
2019-01-31 22:19:35 +00:00
|
|
|
# Ansible template HAD: endif
|
2018-06-27 11:17:44 +00:00
|
|
|
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
|