Fast respawning jobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


i have a job that is very fast respawning if there ist nothing todo. The Servicefile looks like this:


[Unit]
Description=job1
StartLimitIntervalSec=100
StartLimitBurst=5

[Service]
Type=idle
User=myuser
Group=mygroup
WorkingDirectory=/tmp
ExecStart=my_fast_respawning_job.sh
Restart=always
RestartSec=10
KillSignal=SIGUSR1
SuccessExitStatus=10

[Install]
WantedBy=multi-user.target

Problem is that after several retries the job goes to failed state (but it exits after 1 Seconds with resultcode 0).


I examine the manual but can't find a solution for fast respawning jobs.


Beste regards,

  Kai.


PS: I hope this is the correct mailinglist to ask such kind of questions.




At Lürssen, we are dedicated to protecting the world’s oceans and work hard every day to improve our impact on the environment. Please support our mission and reconsider before you print this email in order to save both energy and paper.


Rechtsform: Kommanditgesellschaft
Firma: Fr. Lürssen Werft GmbH & Co. KG
Sitz: Bremen, Amtsgericht Bremen HRA 10066 HB
Umsatzsteuer-Identifikationsnummer: DE114659458
Steuernummer: 60 100 09012

Geschäftsführer: Peter Lürßen, Dr. Klaus Borgschulte, Tim Wagner, Dirk Malgowski, Dr. Justus Reinke, Lena Ströbele, Sebastian Rheineck, York Ilgner

Unsere E-Mail-Nachrichten und Korrespondenz mit der Lürssen Gruppe per E-Mail sind weder rechtsverbindliche Erklärungen noch Geschäftsbriefe. Die Veränderung des ursprünglichen Inhalts dieser E-Mail im Laufe der Datenübertragung kann nicht ausgeschlossen werden. Der Inhalt dieser E-Mail (einschließlich beigefügter Anhänge) ist vertraulich und u.U. rechtlich geschützt und nur für den beabsichtigten Empfänger bestimmt. Sollten Sie nicht der bestimmungsgemäße Empfänger sein, ist Ihnen jegliche Offenlegung, Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte informieren Sie in diesem Fall unverzüglich den Absender und löschen Sie die E-Mail (einschließlich etwaiger beigefügter Dateien) von Ihrem System. Jegliches unbefugte Vervielfältigen, Veröffentlichen oder Weitergabe des Inhaltes dieser E-Mail ist nicht gestattet.
Our e-mail messages and any correspondence with the Luerssen group via e-mail are neither legally binding nor business letters. The falsification of the original content of this message in the course data transmission cannot be excluded. The contents of this e-mail (including any attachments) are confidential and may be privileged and are addressed to the intended recipient only. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system. Any unauthorised copying of this message or unauthorised distribution of the information contained herein is prohibited.


_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux