fix: Turns out mkdir fails because the directory it tried to make doesn't exists. Use systemd, they said.

pull/127/head
Raphaël Vinot 2020-11-19 19:57:49 +01:00
parent ef24934744
commit f604285f8d
1 changed files with 2 additions and 5 deletions

View File

@ -10,11 +10,8 @@ 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"
# The "+" means the command is executed as root, "-" means the command is allowed to fail.
ExecStartPre=+-/bin/mkdir /var/log/lookyloo
ExecStartPre=+-/bin/chown -R <system user used to install lookyloo>:<group of the user used to install lookyloo>
StandardOutput=append:/var/log/lookyloo/message.log
StandardError=append:/var/log/lookyloo/error.log
StandardOutput=append:/var/log/lookyloo_message.log
StandardError=append:/var/log/lookyloo_error.log
[Install]