[systemd-devel] Act on exit code differently?
Sven Anders
anders at anduras.de
Wed Apr 18 04:54:48 PDT 2012
Hello!
Is it possible to act differently on exit codes?
The service may terminate fatal or temporarily.
If the termination is temporarily (exit codes 0|12|13|14|15|16|17) I want the
service to be respawned. On Exit codes 1|6|8|10|11|18|19 it should respawn, but
with a longer sleep.
Otherwise on the fatal case (exit codes 5|2|3|4|7|9) it should not try to respawn
the service.
Regards
Sven Anders
--
Sven Anders <anders at anduras.de> () UTF-8 Ribbon Campaign
/\ Support plain text e-mail
ANDURAS intranet security AG
Messestrasse 3 - 94036 Passau - Germany
Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anders.vcf
Type: text/x-vcard
Size: 352 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120418/deeea0e4/attachment.vcf>
More information about the systemd-devel
mailing list