Skip to content

Instantly share code, notes, and snippets.

@aosterwyk
Created November 19, 2021 02:26
Show Gist options
  • Save aosterwyk/bec4bd9cc7895ae2352cabe948a7172c to your computer and use it in GitHub Desktop.
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