From f3f61db5ba0d82fb990bf1804f01b0f16230d349 Mon Sep 17 00:00:00 2001 From: "Fafner [_KeyZee_]" Date: Fri, 6 Nov 2020 16:17:03 +0100 Subject: [PATCH] add log to lookyloo's service --- etc/systemd/system/lookyloo.service.sample | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/systemd/system/lookyloo.service.sample b/etc/systemd/system/lookyloo.service.sample index e08f5746..f455a0d1 100644 --- a/etc/systemd/system/lookyloo.service.sample +++ b/etc/systemd/system/lookyloo.service.sample @@ -10,6 +10,9 @@ WorkingDirectory= Environment="PATH=:/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 +StandardOutput=append:/var/log/lookyloo/message.log +StandardError=append:/var/log/lookyloo/error.log [Install]