add log to lookyloo's service

pull/123/head
Fafner [_KeyZee_] 2020-11-06 16:17:03 +01:00 committed by GitHub
parent 9243f84295
commit f3f61db5ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ WorkingDirectory=<path to the directory where you cloned the repository>
Environment="PATH=<path to the directory where the poetry executable is>:/usr/bin" Environment="PATH=<path to the directory where the poetry executable is>:/usr/bin"
ExecStart=/bin/bash -c "exec poetry run start" ExecStart=/bin/bash -c "exec poetry run start"
ExecStop=/bin/bash -c "exec poetry run stop" 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] [Install]