mirror of https://github.com/CIRCL/lookyloo
21 lines
654 B
Plaintext
21 lines
654 B
Plaintext
[Unit]
|
|
Description=uWSGI instance to serve lookyloo
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=<system user used to install lookyloo>
|
|
Group=<group of the user used to install lookyloo>
|
|
Type=forking
|
|
WorkingDirectory=<path to the directory where you cloned the repository>
|
|
Environment="PATH=<path to the directory where the poetry executable is>:/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
|
|
|