Skip to content

Instantly share code, notes, and snippets.

@daisycamber
Created July 16, 2024 08:36
Show Gist options
  • Save daisycamber/91850c6202b0c07b19063cfe0fd6a86d to your computer and use it in GitHub Desktop.
Save daisycamber/91850c6202b0c07b19063cfe0fd6a86d to your computer and use it in GitHub Desktop.
/etc/systemd/system/nfc.service
[Unit]
Description=nfc daemon for auth
After=network.target
[Service]
User=root
Group=users
Environment=DISPLAY=:0
WorkingDirectory=/home/daisy/Documents/nfc
ExecStart=/home/daisy/Documents/nfc/venv/bin/python /home/daisy/Documents/nfc/nfc.py
# Not sure if should use 'on-failure' or 'always'.
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