Skip to content

Instantly share code, notes, and snippets.

@KidkArolis
Created November 21, 2017 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KidkArolis/b6861b42ddf3a84564577fc166a09e09 to your computer and use it in GitHub Desktop.
Save KidkArolis/b6861b42ddf3a84564577fc166a09e09 to your computer and use it in GitHub Desktop.
Node.js systemd
[Unit]
Description=Playe Controller
[Service]
ExecStart=/usr/bin/node /home/pi/play/play-controller/controller.js
Restart=always
RestartSec=5
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=play-controller
User=pi
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment