mirror of
https://github.com/Djeeberjr/fw-anwesenheit.git
synced 2025-07-02 01:04:16 +00:00
moved systemd service file
This commit is contained in:
parent
0e7bd8f627
commit
ed0942e332
24
fwa.service
Normal file
24
fwa.service
Normal 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
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user