Add systemd service file

This commit is contained in:
2022-07-20 23:53:51 +02:00
parent 25c5a4179c
commit 62d691dd7a

18
fioul.service Normal file
View File

@@ -0,0 +1,18 @@
[Unit]
Description=Fioul prices fetcher
After=syslog.target
After=network.target
Requires=mysql.service
#Requires=mariadb.service
[Service]
RestartSec=2s
Type=simple
User=fioul
Group=fioul
WorkingDirectory=/opt/fioul
ExecStart=/opt/fioul/fioul.py serve
Restart=always
[Install]
WantedBy=multi-user.target