systemctl edit pmgspamreport.service
Now i got everyday a "daily spam report" plus a "weekly spam report"
But my goal is a "weekly spam report" every monday morning and no more "daily spam report"
What must i change to
1. disable daily reports
2. enable weekly reports
Code:
### Editing /etc/systemd/system/pmgspamreport. service. d/override.conf
### Anything between here and the comment below will become the new contents of the file
[Unit]
Description=send weekly spam report mails
ConditionPathExists=/usr/bin/pmgqm
[Service]
Type=oneshot
ExecStartPre=-/usr/bin/pmgqm purge
ExecStart=/usr/bin/pmgqm send --timespan week
### lines below this comment will be discarded
###/lib/systemd/system/pmgspamreport.service
# [Unit]
# Description=Send Daily Spam Report Mails
# ConditionPathExists=/usr/bin/pmgqm
# [Service]
# Type=oneshot
# ExecStartPre=-/usr/bin/pmgqm purge
# ExecStart=/usr/bin/pmgqm send --timespan yesterday
Now i got everyday a "daily spam report" plus a "weekly spam report"
But my goal is a "weekly spam report" every monday morning and no more "daily spam report"
What must i change to
1. disable daily reports
2. enable weekly reports