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 After=network.target
[Service] [Service]
User=www-data User=<system user used to install lookyloo>
Group=www-data Group=<group of the user used to install lookyloo>
Type=forking Type=forking
WorkingDirectory=</git/home/directory> WorkingDirectory=<path to the directory where you cloned the repository>
Environment=LOOKYLOO_HOME=</git/home/directory> Environment="PATH=<path to the directory where the poetry executable is>"
Environment=PATH=</path/to/virtualenv>/bin:$PATH ExecStart=/bin/bash -c "exec poetry run start"
ExecStart=</path/to/virtualenv>/bin/start.py ExecStop=/bin/bash -c "exec poetry run stop"
ExecStop=</path/to/virtualenv>/bin/stop.py
[Install] [Install]