mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-05 17:52:59 +01:00
parent
4f50f4a367
commit
29f7cf6b98
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
|
10
etc/systemd/system/matterbridge.timer
Normal file
10
etc/systemd/system/matterbridge.timer
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Restart Matterbridge daemon daily at 05 Finnish time
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* 05:00:00 Europe/Helsinki
|
||||||
|
RandomizedDelaySec=1h
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user