Created
February 8, 2023 01:34
-
-
Save tfkhdyt/101548e04ae3954543c856215b5d982c to your computer and use it in GitHub Desktop.
Simple Systemd service example
This file contains hidden or 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=Service description | |
[Service] | |
Type=simple | |
User=admin | |
WorkingDirectory=/home/admin/project-name | |
ExecStart=/usr/bin/node /home/admin/project-name/dist/index.js | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment