mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-04 21:27:20 +02:00
Compare commits
4 Commits
4f50f4a367
...
9ba056cfd3
Author | SHA1 | Date | |
---|---|---|---|
9ba056cfd3 | |||
62573195d9 | |||
13278214d1 | |||
29f7cf6b98 |
12
etc/systemd/system/matterbridge-cleanup.service
Normal file
12
etc/systemd/system/matterbridge-cleanup.service
Normal 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
|
10
etc/systemd/system/matterbridge-cleanup.timer
Normal file
10
etc/systemd/system/matterbridge-cleanup.timer
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run matterbridge cleanup every minute
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* *:*:00
|
||||||
|
OnBootSec=0
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
16
etc/systemd/system/matterbridge.service
Normal file
16
etc/systemd/system/matterbridge.service
Normal 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
|
11
etc/systemd/system/matterbridge.timer
Normal file
11
etc/systemd/system/matterbridge.timer
Normal 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
|
Loading…
x
Reference in New Issue
Block a user