Skip to content

Instantly share code, notes, and snippets.

@aosterwyk
Created November 19, 2021 02:26
Embed
What would you like to do?
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