moved systemd service file

This commit is contained in:
Djeeberjr 2025-05-22 15:50:48 +02:00
parent 0e7bd8f627
commit ed0942e332
2 changed files with 24 additions and 19 deletions

24
fwa.service Normal file
View File

@ -0,0 +1,24 @@
[Unit]
Description=Feuerwehr Anwesenheit Service
Requires=local-fs.target
After=local-fs.target
StartLimitIntervalSec=500
StartLimitBurst=5
[Service]
Type=simple
ExecStart=/usr/local/bin/fwa
Restart=on-failure
RestartSec=5
User=root
Group=root
RuntimeDirectory=/var/lib/fwa
Environment="PM3_BIN=/usr/local/bin/pm3/pm3"
#Environment="LOG_LEVEL=warn"
#Environment="HOTSPOT_IDS=578B5DF2;c1532b57"
#Environment="HOTSPOT_SSID=fwa"
#Environment="HOTSPOT_PW=a9LG2kUVrsRRVUo1"
[Install]
WantedBy=multi-user.target

View File

@ -1,19 +0,0 @@
[Unit]
Description=Feuerwehr Anwesenheit Service
Requires=local-fs.target
After=local-fs.target
StartLimitIntervalSec=500
StartLimitBurst=5
[Service]
Type=simple
ExecStart=/home/pi/fw-anwesenheit
Restart=on-failure
RestartSec=5
User=root
Group=root
Environment="PM3_BIN=/home/pi/proxmark3/pm3"
RuntimeDirectory=/home/pi
[Install]
WantedBy=multi-user.target