Skip to content

Instantly share code, notes, and snippets.

@tesla-srt
Created March 16, 2024 18:56
Show Gist options
  • Save tesla-srt/2e965e477621bc76b455b804c4585ffa to your computer and use it in GitHub Desktop.
Save tesla-srt/2e965e477621bc76b455b804c4585ffa to your computer and use it in GitHub Desktop.
sample unit
[Unit]
Description=hello_env.js
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/node /home/ubuntu/hello_env.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