Blame SOURCES/Do-not-restart-service-after-unclean-exit-code.patch

9c8d8f
From c5e3011b7364729fa2cd4f11761bf1f001a931a4 Mon Sep 17 00:00:00 2001
9c8d8f
From: Ondrej Holy <oholy@redhat.com>
9c8d8f
Date: Tue, 22 May 2018 20:45:45 +0200
9c8d8f
Subject: [PATCH 1/2] Do not restart service after unclean exit code
9c8d8f
9c8d8f
Currently, the vino-server.service has Restart=on-failure, which means
9c8d8f
that it is restarted in abnormal cases, but also in case of non-zero
9c8d8f
exit code. It is restarted 5 times e.g. in case when X11 is not detected,
9c8d8f
which doesn't make sense. Non-zero exit code is used only for states
9c8d8f
which won't change with restart (invalid commandline, wayland and some
9c8d8f
sanity checks). Change the value to Restart=on-abnormal in order to
9c8d8f
prevent the useless restarts and to not spam journal.
9c8d8f
9c8d8f
https://bugzilla.gnome.org/show_bug.cgi?id=761120
9c8d8f
---
9c8d8f
 server/vino-server.service.in | 2 +-
9c8d8f
 1 file changed, 1 insertion(+), 1 deletion(-)
9c8d8f
9c8d8f
diff --git a/server/vino-server.service.in b/server/vino-server.service.in
9c8d8f
index a48b813..49e9c1f 100644
9c8d8f
--- a/server/vino-server.service.in
9c8d8f
+++ b/server/vino-server.service.in
9c8d8f
@@ -5,4 +5,4 @@ Description=Vino VNC server
9c8d8f
 Type=dbus
9c8d8f
 BusName=org.gnome.Vino
9c8d8f
 ExecStart=@libexecdir@/vino-server
9c8d8f
-Restart=on-failure
9c8d8f
+Restart=on-abnormal
9c8d8f
-- 
9c8d8f
2.17.0
9c8d8f