27 lines
520 B
Desktop File
27 lines
520 B
Desktop File
# THIS IS A USER-LEVEL SERVICE
|
|
# ~/.config/systemd/user
|
|
# systemctl --user daemon-reload
|
|
# systemctl --user enable nfc-reader.service
|
|
# systemctl --user start nfc-reader.service
|
|
|
|
[Unit]
|
|
Description=NFC Reader Service
|
|
After=graphical-session.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/opt/nfc
|
|
|
|
ExecStart=/opt/nfc/venv/bin/python /opt/nfc/NfcReaderService.py
|
|
|
|
Restart=always
|
|
RestartSec=2
|
|
|
|
Environment=PYTHONUNBUFFERED=1
|
|
|
|
Environment=DISPLAY=:0
|
|
Environment=XAUTHORITY=%h/.Xauthority
|
|
|
|
[Install]
|
|
WantedBy=default.target
|