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

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