15 lines
316 B
SYSTEMD
15 lines
316 B
SYSTEMD
[Unit]
|
|
Description=Space Weather VTEC
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=homeassistant
|
|
EnvironmentFile=/etc/secrets/space-weather
|
|
ExecStart=/srv/space-weather/venv/bin/python /srv/space-weather/ha-noaa-space-weather-sensor/main.py
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|