ha-noaa-space-weather/feeder/systemd/space-weather-global-image....

16 lines
408 B
SYSTEMD

[Unit]
Description=Space Weather Global Image Generator
After=network.target space-weather-cache.service
[Service]
Type=simple
User=homeassistant
EnvironmentFile=/etc/secrets/space-weather
ExecStart=/srv/ha-noaa-space-weather/venv/bin/python /srv/ha-noaa-space-weather/feeder/global-image.py
SyslogIdentifier=space-weather-global-image
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target