add listmonk app

This commit is contained in:
2026-02-06 18:36:15 +01:00
parent 3d6793a843
commit 905cc8b43d
12 changed files with 351 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Backup Service
Wants=network.target
After=network.target postgresql.service
[Service]
Type=oneshot
User=root
ExecStart=/usr/local/bin/backup.sh

View File

@@ -0,0 +1,15 @@
[Unit]
Description=listmonk mailing list and newsletter manager (%I)
ConditionPathExists=/home/listmonk/config.toml
Wants=network.target
After=postgresql.service
[Service]
Type=simple
ExecStartPre=/usr/local/bin/listmonk --config /home/listmonk/config.toml --upgrade --yes
ExecStart=/usr/local/bin/listmonk --config /home/listmonk/config.toml
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Restore latest backup
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=oneshot
User=root
ExecStart=/usr/local/bin/restore-backup.sh