Skip to content

Instantly share code, notes, and snippets.

@felixblaschke
Created April 20, 2021 15:34
Show Gist options
  • Save felixblaschke/bac0d04a794c7c38c7d4fccc6638f78c to your computer and use it in GitHub Desktop.
Save felixblaschke/bac0d04a794c7c38c7d4fccc6638f78c to your computer and use it in GitHub Desktop.
[Unit]
Description=dartbackend
[Service]
User=root
Type=simple
ExecStart=/usr/bin/dart bin/dart_backend.dart
WorkingDirectory=/root/dart_backend
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment