Skip to content

Instantly share code, notes, and snippets.

@aosterwyk
Created November 19, 2021 02:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aosterwyk/bec4bd9cc7895ae2352cabe948a7172c to your computer and use it in GitHub Desktop.
Linux service
[Unit]
Description=SERVICEDESCRIPTION
After=multi-user.target
[Service]
User=SERVICEUSER
Group=SERVICEGROUP
Type=simple
WorkingDirectory=/path/to/working/directory
ExecStart=/usr/local/bin/node /path/to/main.js
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment