mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-03-11 09:10:39 +01:00
systemd: copy matterbridge restarter into gitea one
It used to stop working randomly without a good reason, but that is likely fixed upstream a long time ago and while I removed it from cron, these units exist so should the issue recur, I can throw these back in. The cron wasn't randomized though, but I don't think there is harm in this being a bit random.
This commit is contained in:
parent
8e69874534
commit
5704353d55
6
etc/systemd/system/gitea-restart.service
Normal file
6
etc/systemd/system/gitea-restart.service
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Gitea restarter
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/bin/systemctl restart gitea.service --quiet
|
11
etc/systemd/system/gitea-restart.timer
Normal file
11
etc/systemd/system/gitea-restart.timer
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Execute Gitea restarter daily between 05-06 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