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