diff --git a/update/systemd/superx_update.service b/update/systemd/superx_update.service new file mode 100644 index 0000000..c24b12f --- /dev/null +++ b/update/systemd/superx_update.service @@ -0,0 +1,9 @@ +[Unit] +Description=SuperX BI Laderoutine + +[Service] +Type=oneshot +User=superx +Group=superx +WorkingDirectory=/home/superx +ExecStart=/bin/bash /var/lib/tomcat10/webapps/superx/WEB-INF/bin/BI-Maintenance/update/modules_update_cron.sh diff --git a/update/systemd/superx_update.timer b/update/systemd/superx_update.timer new file mode 100644 index 0000000..2f6b00b --- /dev/null +++ b/update/systemd/superx_update.timer @@ -0,0 +1,13 @@ +[Unit] +Description=Timer für SuperX BI Laderoutine + +[Timer] +OnCalendar=Mon..Fri *-*-* 18:00:00 +Unit=superx_update.service + +# Optional: +# Verpassten Lauf nach Server-Neustart nachholen: +# Persistent=true + +[Install] +WantedBy=timers.target