Skip to content

Instantly share code, notes, and snippets.

@levidurfee
Created March 24, 2021 19:05
Show Gist options
  • Save levidurfee/b163b634af7a622c32eca86b327c5555 to your computer and use it in GitHub Desktop.
Save levidurfee/b163b634af7a622c32eca86b327c5555 to your computer and use it in GitHub Desktop.
systemd service file
# https://wiki.debian.org/systemd/Services
# Contents of /etc/systemd/system/myservice.service
[Unit]
Description=My Service
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/myservice
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment