Skip to content

Instantly share code, notes, and snippets.

@fitzgeraldsteele
Last active November 12, 2019 18:00
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 fitzgeraldsteele/b587258eaa221fa4ae12929c5ea0a814 to your computer and use it in GitHub Desktop.
Save fitzgeraldsteele/b587258eaa221fa4ae12929c5ea0a814 to your computer and use it in GitHub Desktop.
[Unit]
Description=Azure Metadata app
[Service]
ExecStart=/usr/bin/node /var/www/azuremetadata/app.js
#Restart=always
StandardOut=syslog
StandardError=Syslog
User=nobody
# Note Debian/Ubuntu uses 'nogroup', RHEL/Fedora uses 'nobody'
Group=nogroup
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/var/www/azuremetadata
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment