Skip to content

Instantly share code, notes, and snippets.

@johnymachine
Created November 23, 2016 12:44
Show Gist options
  • Save johnymachine/7ba90d11f77a5e70997f7acbc679903d to your computer and use it in GitHub Desktop.
Save johnymachine/7ba90d11f77a5e70997f7acbc679903d to your computer and use it in GitHub Desktop.
systemd file
[Unit]
Description=Node-RED
After=syslog.target network.target
[Service]
ExecStart=/usr/bin/node /home/node-red/node_modules/node-red/red
Restart=on-failure
KillSignal=SIGINT
User=node-red
Group=node-red
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment