matrix-maintenance/matrix-synapse-maintenance.service

24 lines
649 B
SYSTEMD
Raw Permalink Normal View History

2024-07-17 22:55:20 +02:00
[Unit]
Description=cleanup tasks for the matrix synapse service
After=matrix-synapse.service
BindsTo=matrix-synapse.service
Requisite=matrix-synapse.service
# Please create a token file
ConditionPathExists=/etc/matrix-synapse/cleanup.token
[Service]
Type=simple
LoadCredential=token_header:/etc/matrix-synapse/cleanup.token
ExecStart=/usr/bin/run-parts --verbose --arg=%d/token_header --arg=http://127.0.0.1:8008/_synapse/admin/ -- /etc/matrix-synapse/cleanup.d
# Matrix user isn't needed for the current scripts
# User=matrix-synapse
# Group=matrix-synapse
DynamicUser=yes
ProtectSystem=strict
ConfigurationDirectory=matrix-synapse/cleanup.d