add mail-cron systemd unit

This commit is contained in:
Daniel Winzen 2024-06-02 20:38:55 +02:00
parent 46a76764ad
commit e8f64f6913
No known key found for this signature in database
GPG key ID: 222FCC3F35C41077
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,8 @@
[Unit]
Description=Mail cron
After=srv.mount
Requires=srv.mount
[Service]
Type=simple
ExecStart=/usr/bin/php /srv/var/www/mail/cron.php

View file

@ -0,0 +1,14 @@
[Unit]
Description=Mail cron
After=srv.mount
Requires=srv.mount
[Timer]
# Time to wait after booting before we run first time
OnBootSec=3min
# Time between running each consecutive time
OnUnitActiveSec=5m
Unit=mail-cron.service
[Install]
WantedBy=multi-user.target