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