X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fjenkins_job_health_exporter%2Ftemplates%2Fjenkins-job-health-exporter.service.j2;fp=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fjenkins_job_health_exporter%2Ftemplates%2Fjenkins-job-health-exporter.service.j2;h=38073d0a8c7209bb7ed3e48a63aab6aff7aed940;hp=0000000000000000000000000000000000000000;hb=0017c9d8372ef306ac73aae22bb0d17631c944d2;hpb=60b531215d36e2402b1b6c768bd4fd4d4b210fd0 diff --git a/resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/templates/jenkins-job-health-exporter.service.j2 b/resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/templates/jenkins-job-health-exporter.service.j2 new file mode 100644 index 0000000000..38073d0a8c --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/templates/jenkins-job-health-exporter.service.j2 @@ -0,0 +1,13 @@ +[Unit] +Description=Jenkins Job Health Exporter +Documentation=https://github.com/ayourtch/jenkins-job-health-exporter + +[Service] +Restart=always +ExecStart={{ jenkins_job_health_exporter_target_dir }}/jenkins-job-health-exporter {{ jenkins_job_health_exporter_conf_dir }}/jenkins-job-health-exporter.json +ExecReload=/bin/kill -HUP $MAINPID +TimeoutStopSec=20s +SendSIGKILL=no + +[Install] +WantedBy=multi-user.target \ No newline at end of file