commit 7a2fc3e2a84608c55a312717f9be01dbfe6ad78a
Author: Radek Novacek <rnovacek(a)redhat.com>
Date: Wed Dec 11 09:05:38 2013 +0100
Force using background mode when starting from systemd
virt-who has "forking" type of systemd service, so it must fork itself when
starting. The VIRTWHO_BACKGROUND config option was removed from the
config file (but is still recognized) and is overriden when starting
through systemd.
virt-who.conf | 5 -----
virt-who.service | 2 +-
2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/virt-who.conf b/virt-who.conf
index 2c117d2..95a4cc1 100644
--- a/virt-who.conf
+++ b/virt-who.conf
@@ -3,11 +3,6 @@
# These enviromental variables are only used when starting virt-who as service,
# otherwise you must specify them manually.
-# Start virt-who on background, perform doublefork and monitor for virtual guest
-# events (if possible). It is NOT recommended to turn off this option for
-# starting virt-who as service.
-VIRTWHO_BACKGROUND=1
-
# Enable debugging output.
VIRTWHO_DEBUG=0
diff --git a/virt-who.service b/virt-who.service
index 74982c5..1066de0 100644
--- a/virt-who.service
+++ b/virt-who.service
@@ -5,7 +5,7 @@ After=syslog.target libvirtd.service network.target
[Service]
Type=forking
PIDFile=/var/run/virt-who.pid
-ExecStart=/usr/bin/virt-who
+ExecStart=/usr/bin/virt-who -b
EnvironmentFile=-/etc/sysconfig/virt-who
[Install]
Show replies by date