Last active
February 4, 2024 22:34
-
-
Save joepie91/121cee021f18e243a648ca8627b567c3 to your computer and use it in GitHub Desktop.
systemd service file example for Node.js
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] | |
After=network.target | |
Description=Hello World App | |
[Service] | |
Environment="NODE_ENV=production" | |
ExecStart=/usr/bin/node /home/foo/test/index.js | |
Restart=on-failure | |
User=foo | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment