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

16 lines
380 B
SYSTEMD

[Unit]
Description=Space Weather Global Image Generator
After=network.target
[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