Last active
February 11, 2019 10:48
-
-
Save rafabarzotto/01b354e8966754be8de6d898776936ee to your computer and use it in GitHub Desktop.
ubuntu 16.04 nodejs app service
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
[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