[Unit]
Description=Astra EPG service
After=network.target
StartLimitBurst=5
StartLimitIntervalSec=10

[Service]
Type=simple
TimeoutStartSec=10
LimitNOFILE=65536
ExecStartPre=/bin/mkdir -p /etc/astra
ExecStart=/usr/bin/astra /etc/astra/epg-aggregator.lua -o /tmp/epg.xml -p 5000 --no-stdout
ExecStop=/bin/kill $MAINPID
ExecReload=/bin/kill -s HUP $MAINPID
Restart=on-failure
RestartSec=1

[Install]
WantedBy=multi-user.target
