chg: Update systemd service

pull/96/head
Raphaël Vinot 2020-10-07 15:34:25 +02:00
parent 6066bb1a4c
commit ad780e1ad2
1 changed files with 6 additions and 7 deletions

View File

@ -3,14 +3,13 @@ Description=uWSGI instance to serve lookyloo
After=network.target
[Service]
User=www-data
Group=www-data
User=<system user used to install lookyloo>
Group=<group of the user used to install lookyloo>
Type=forking
WorkingDirectory=</git/home/directory>
Environment=LOOKYLOO_HOME=</git/home/directory>
Environment=PATH=</path/to/virtualenv>/bin:$PATH
ExecStart=</path/to/virtualenv>/bin/start.py
ExecStop=</path/to/virtualenv>/bin/stop.py
WorkingDirectory=<path to the directory where you cloned the repository>
Environment="PATH=<path to the directory where the poetry executable is>"
ExecStart=/bin/bash -c "exec poetry run start"
ExecStop=/bin/bash -c "exec poetry run stop"
[Install]