node-red-run/node-red.service

23 lines
517 B
INI
Raw Permalink Normal View History

2020-07-02 15:38:21 -07:00
[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=
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
# WorkingDirectory=${NODE_RED_USER_DIR}
2020-07-02 15:38:21 -07:00
User=sysadmin
Group=sysadmin
[Install]
WantedBy=multi-user.target