Created
March 11, 2020 11:49
-
-
Save maruware/fe629711ccdad653dd29135210073699 to your computer and use it in GitHub Desktop.
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=some-service | |
After=network.target | |
[Service] | |
WorkingDirectory=/your/directory | |
Environment=NODE_ENV=production | |
Environment=REDIS_HOST=localhost | |
ExecStart=/usr/bin/node index.js | |
Restart=always | |
Type=simple | |
User=maruware | |
Group=maruware | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment