diff --git a/etc/systemd/system/gitea-restart.service b/etc/systemd/system/gitea-restart.service new file mode 100644 index 00000000..b43ae5b4 --- /dev/null +++ b/etc/systemd/system/gitea-restart.service @@ -0,0 +1,6 @@ +[Unit] +Description=Gitea restarter + +[Service] +Type=oneshot +ExecStart=/bin/systemctl restart gitea.service --quiet diff --git a/etc/systemd/system/gitea-restart.timer b/etc/systemd/system/gitea-restart.timer new file mode 100644 index 00000000..6e639f86 --- /dev/null +++ b/etc/systemd/system/gitea-restart.timer @@ -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