diff --git a/es-reindexers/systemd/perfscale-es-rosa-metadata-prod.service b/es-reindexers/systemd/perfscale-es-rosa-metadata-prod.service new file mode 100755 index 0000000..9c20b04 --- /dev/null +++ b/es-reindexers/systemd/perfscale-es-rosa-metadata-prod.service @@ -0,0 +1,12 @@ +[Unit] +Description=Perfscale ES rosa-metadata prod sync job +Wants=perfscale-es-rosa-metadata-prod.timer + +[Service] +Type=simple +User=root +WorkingDirectory=/root +ExecStart=/bin/bash perfscale-es-rosa-metadata-prod.sh + +[Install] +WantedBy=multi-user.target diff --git a/es-reindexers/systemd/perfscale-es-rosa-metadata-prod.timer b/es-reindexers/systemd/perfscale-es-rosa-metadata-prod.timer new file mode 100755 index 0000000..9582428 --- /dev/null +++ b/es-reindexers/systemd/perfscale-es-rosa-metadata-prod.timer @@ -0,0 +1,23 @@ +[Unit] +Description=Perfscale ES rosa-metadata prod sync job +Wants=perfscale-es-rosa-metadata-prod.timer + +[Service] +Type=simple +User=root +WorkingDirectory=/root +ExecStart=/bin/bash perfscale-es-rosa-metadata-prod.sh + +[Install] +WantedBy=multi-user.target +[root@snowflake system]# cat perfscale-es-rosa-metadata-prod.timer +[Unit] +Description=Perfscale ES perf scale rosa metadata Timer +Requires=perfscale-es-rosa-metadata-prod.service + +[Timer] +OnCalendar=*-*-* *:1/12:00 +Unit=perfscale-es-rosa-metadata-prod.service + +[Install] +WantedBy=timers.target