Skip to content

Commit 7067f05

Browse files
authoredJan 9, 2024
Update listmonk-simple.service - add optional log file (#1640)
#1614 (comment)
1 parent 8677151 commit 7067f05

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎listmonk-simple.service

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ RestartSec=5
2424
# to the end of the ExecStart line above after creating the dir and fetching the files with:
2525
# 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"
2626

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).
2831
# Can use "DynamicUser=" instead, if your systemd version is >= 232.
2932
# https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#DynamicUser=
3033
#User=
3134
#StateDirectory=/etc/listmonk
32-
#LogsDirectory=/etc/listmonk
33-
#CacheDirectory=/etc/listmonk/cache
3435
#Environment=HOME=/usr/bin
3536

3637
# Use systemd’s ability to disable security-sensitive features

0 commit comments

Comments
 (0)
Please sign in to comment.