[Unit] Description=uWSGI instance to serve lookyloo After=network.target [Service] User= Group= Type=forking WorkingDirectory= Environment="PATH=:/usr/bin" ExecStart=/bin/bash -c "exec poetry run start" ExecStop=/bin/bash -c "exec poetry run stop" # check that the log folder exists, if not: sudo mkdir /var/log/lookyloo StandardOutput=append:/var/log/lookyloo/message.log StandardError=append:/var/log/lookyloo/error.log [Install] WantedBy=multi-user.target