2020-07-02 15:38:21 -07:00
|
|
|
[Unit]
|
|
|
|
Description=Node-RED
|
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
2022-01-02 19:21:21 -08:00
|
|
|
# uncomment environment and set for alternative user directory, default is /data/node-red
|
|
|
|
# Environment=NODE_RED_USER_DIR=
|
2020-07-02 15:38:21 -07:00
|
|
|
ExecStart=/bin/bash /opt/node-red-run/run ${NODE_RED_USER_DIR}
|
|
|
|
Restart=on-failure
|
|
|
|
KillSignal=SIGINT
|
|
|
|
|
|
|
|
# log output to syslog as 'node-red'
|
|
|
|
SyslogIdentifier=node-red
|
|
|
|
StandardOutput=syslog
|
|
|
|
|
|
|
|
# non-root user to run as
|
2022-01-02 19:21:21 -08:00
|
|
|
# WorkingDirectory=${NODE_RED_USER_DIR}
|
2020-07-02 15:38:21 -07:00
|
|
|
User=sysadmin
|
|
|
|
Group=sysadmin
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|