Created
April 30, 2013 14:46
-
-
Save fabaff/5489197 to your computer and use it in GitHub Desktop.
systemd service unit for node.js http-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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