add listmonk app
This commit is contained in:
9
modules/apps/listmonk/lib/services/create-backup.service
Normal file
9
modules/apps/listmonk/lib/services/create-backup.service
Normal 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
|
||||
15
modules/apps/listmonk/lib/services/listmonk.service
Normal file
15
modules/apps/listmonk/lib/services/listmonk.service
Normal 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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user