Skip to content

Instantly share code, notes, and snippets.

@daisycamber
Last active December 6, 2023 04:06
Show Gist options
  • Save daisycamber/0d5f1a9aa77a1fa95d16074d1d2c3f74 to your computer and use it in GitHub Desktop.
Save daisycamber/0d5f1a9aa77a1fa95d16074d1d2c3f74 to your computer and use it in GitHub Desktop.
NFC daemon for systemd
[Unit]
Description=nfc daemon for auth
After=network.target
[Service]
User=root
Group=users
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