Compare commits

..

4 Commits

4 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,12 @@
[Unit]
Description=Matterbridge mediarepo cleanup for things older than a week
[Service]
Type=oneshot
ExecStart=-/usr/bin/find /var/www/html/matterbridge -type f -cmin +10080 -delete
User=matterbridge
StandardOutput=null
StandardError=null
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=Run matterbridge cleanup every minute
[Timer]
OnCalendar=*-*-* *:*:00
OnBootSec=0
Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,16 @@
[Unit]
Description=Matterbridge Daemon
After=network-online.target systemd-resolved.service
#oragono.service
# ^--v add these if running Ergo (previously Oragono) on the same host
#Wants=oragono.service
[Service]
Environment="PATH=/home/matterbridge/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
ExecStart=/home/matterbridge/.local/bin/matterbridge -debug -conf /home/matterbridge/matterbridge.toml
Restart=always
RestartSec=5s
User=matterbridge
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,11 @@
[Unit]
Description=Restart Matterbridge daemon daily at 05 Finnish time
[Timer]
OnCalendar=*-*-* 05:00:00 Europe/Helsinki
OnBootSec=0
RandomizedDelaySec=1h
Persistent=true
[Install]
WantedBy=timers.target