mirror of https://github.com/CIRCL/lookyloo
chg: Create logging directory if needed
parent
e1469ee494
commit
5f3a4323c3
|
@ -10,7 +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"
|
||||
# check that the log folder exists, if not: sudo mkdir /var/log/lookyloo
|
||||
# The "+" means the command is executed as root, "-" means the command is allowed to fail.
|
||||
ExecStartPre=+-/bin/mkdir /var/log/lookyloo
|
||||
StandardOutput=append:/var/log/lookyloo/message.log
|
||||
StandardError=append:/var/log/lookyloo/error.log
|
||||
|
||||
|
|
Loading…
Reference in New Issue