add mastodon cleanup timer
This commit is contained in:
parent
d659f8aa06
commit
46af324159
2 changed files with 18 additions and 0 deletions
9
beeper/etc/systemd/system/mastodon-maintenance.service
Normal file
9
beeper/etc/systemd/system/mastodon-maintenance.service
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Mastodon Maintenance Service
|
||||||
|
Requires=mastodon-web.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=no
|
||||||
|
ExecStart=/usr/bin/podman exec mastodon-web tootctl statuses remove --days 90
|
||||||
|
ExecStart=/usr/bin/podman exec mastodon-web tootctl accounts cull
|
||||||
9
beeper/etc/systemd/system/mastodon-maintenance.timer
Normal file
9
beeper/etc/systemd/system/mastodon-maintenance.timer
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Mastodon monthly maintenance
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=monthly
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue