1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Origin: http://pkgs.fedoraproject.org/cgit/rpms/arpwatch.git/plain/arpwatch-exitcode.patch
Description: exit with status 0 when stopping with SIGTERM
With this patch systemd can distinguish an unclean shutdown from a clean one.
This is useful for implementing an automatic restart in case arpwatch crashes.
---
arpwatch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arpwatch.c
+++ b/arpwatch.c
@@ -887,7 +887,7 @@
syslog(LOG_DEBUG, "exiting");
checkpoint(0);
- exit(1);
+ exit(0);
}
RETSIGTYPE
|