Skip to content

Instantly share code, notes, and snippets.

@joepie91 joepie91/.service
Last active Apr 25, 2019

Embed
What would you like to do?
systemd service file example for Node.js
[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
You can’t perform that action at this time.