diff --git a/fioul.service b/fioul.service new file mode 100644 index 0000000..2d52925 --- /dev/null +++ b/fioul.service @@ -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