Update nfc-reader.service
This commit is contained in:
parent
485de56f3b
commit
99bba1b59a
@ -1,10 +1,15 @@
|
||||
# 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=network.target
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ezgg
|
||||
WorkingDirectory=/opt/nfc
|
||||
|
||||
ExecStart=/opt/nfc/venv/bin/python /opt/nfc/NfcReaderService.py
|
||||
@ -14,5 +19,8 @@ RestartSec=2
|
||||
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
Environment=DISPLAY=:0
|
||||
Environment=XAUTHORITY=%h/.Xauthority
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=default.target
|
||||
|
||||
Loading…
Reference in New Issue
Block a user