Skip to content

Instantly share code, notes, and snippets.

@fabaff
Created April 30, 2013 14:46
Show Gist options
  • Save fabaff/5489197 to your computer and use it in GitHub Desktop.
Save fabaff/5489197 to your computer and use it in GitHub Desktop.
systemd service unit for node.js http-server
[Unit]
Description=A simple node.js Web server
After=network.target
[Service]
Type=simple
User=nobody
Group=nobody
Restart=always
ExecStart=/usr/bin/http-server /var/www/nodejs -p 8888 -s
StandardOutput=syslog
SyslogIdentifier=nodejs-http
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment