23 lines
517 B
INI
23 lines
517 B
INI
[Unit]
|
|
Description=Node-RED
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
# uncomment environment and set for alternative user directory, default is /data/node-red
|
|
# Environment=NODE_RED_USER_DIR=
|
|
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
|
|
# WorkingDirectory=${NODE_RED_USER_DIR}
|
|
User=sysadmin
|
|
Group=sysadmin
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|