diff --git a/fwa.service b/fwa.service new file mode 100644 index 0000000..6b78e1d --- /dev/null +++ b/fwa.service @@ -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 diff --git a/src/fw-anwesenheit.service b/src/fw-anwesenheit.service deleted file mode 100644 index 5e08901..0000000 --- a/src/fw-anwesenheit.service +++ /dev/null @@ -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 \ No newline at end of file