File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,14 @@ RestartSec=5
24
24
# to the end of the ExecStart line above after creating the dir and fetching the files with:
25
25
# mkdir -p /etc/listmonk/static ; wget -O - https://github.com/knadh/listmonk/archive/master.tar.gz | tar xz -C /etc/listmonk/static --strip=2 "listmonk-master/static"
26
26
27
- # Set user to run listmonk service as (instead of root), and folders it can write to.
27
+ # To enable a log file that persists after restarts, replace the ExecStart= line with:
28
+ # ExecStart=/bin/bash -ce "exec /usr/bin/listmonk --config /etc/listmonk/config.toml --static-dir /etc/listmonk/static >>/etc/listmonk/listmonk.log 2>&1"
29
+
30
+ # Set user to run listmonk service as (instead of root).
28
31
# Can use "DynamicUser=" instead, if your systemd version is >= 232.
29
32
# https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#DynamicUser=
30
33
#User=
31
34
#StateDirectory=/etc/listmonk
32
- #LogsDirectory=/etc/listmonk
33
- #CacheDirectory=/etc/listmonk/cache
34
35
#Environment=HOME=/usr/bin
35
36
36
37
# Use systemd’s ability to disable security-sensitive features
You can’t perform that action at this time.
0 commit comments