Skip to content

Instantly share code, notes, and snippets.

@rama4zis
Created February 14, 2023 11:29
Show Gist options
  • Save rama4zis/9fbd1208db827c28a5cc06f45f41984a to your computer and use it in GitHub Desktop.
Save rama4zis/9fbd1208db827c28a5cc06f45f41984a to your computer and use it in GitHub Desktop.
[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