add systemd service

This commit is contained in:
Artem Sukhodolskyi 2025-10-20 21:21:27 +02:00
parent 65c47b720b
commit c027ec0c8e

16
finger-weather.service Normal file
View File

@ -0,0 +1,16 @@
[Unit]
Description=Finger Weather Forecast Service
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=root
Group=root
Environment="WEATHER_API_KEY=<your key>"
SyslogIdentifier=finger-weather
ExecStart=/usr/local/bin/finger-weather
Restart=on-failure
[Install]
WantedBy=multi-user.target