Skip to content

Instantly share code, notes, and snippets.

@rafabarzotto
Last active February 11, 2019 10:48
Show Gist options
  • Save rafabarzotto/01b354e8966754be8de6d898776936ee to your computer and use it in GitHub Desktop.
Save rafabarzotto/01b354e8966754be8de6d898776936ee to your computer and use it in GitHub Desktop.
ubuntu 16.04 nodejs app service
[Service]
WorkingDirectory=/home/opt/webServer/dhcpWeb-api
ExecStart=/usr/bin/nodejs /home/opt/webServer/dhcpWeb-api/bin/server
User=opt
Group=
Restart=always
Environment='NODE_ENV=production'
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=dhcpWeb-api
####
#etc/systemd/system/hello_world.service
#sudo systemctl start hello_world.service
#sudo systemctl stop hello_world.service
#sudo systemctl restart hello_world.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment