2019-04-05 14:01:36 +02:00
|
|
|
[Unit]
|
|
|
|
Description=uWSGI instance to serve lookyloo
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2020-10-07 15:34:25 +02:00
|
|
|
User=<system user used to install lookyloo>
|
|
|
|
Group=<group of the user used to install lookyloo>
|
2019-04-05 14:01:36 +02:00
|
|
|
Type=forking
|
2020-10-07 15:34:25 +02:00
|
|
|
WorkingDirectory=<path to the directory where you cloned the repository>
|
2020-10-08 12:09:30 +02:00
|
|
|
Environment="PATH=<path to the directory where the poetry executable is>:/usr/bin"
|
2020-10-07 15:34:25 +02:00
|
|
|
ExecStart=/bin/bash -c "exec poetry run start"
|
|
|
|
ExecStop=/bin/bash -c "exec poetry run stop"
|
2020-11-19 19:57:49 +01:00
|
|
|
StandardOutput=append:/var/log/lookyloo_message.log
|
|
|
|
StandardError=append:/var/log/lookyloo_error.log
|
2019-04-05 14:01:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|