summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2019-04-03 11:13:09 -0700
committerWilliam A. Kennington III <wak@google.com>2019-04-03 11:16:19 -0700
commite5e3a9ccd0c3d13f63e9e1a730bd3a8cb66b48dd (patch)
tree5e7db60d3936d472ebc032a64683a928379ba392
parentbc89289f48ce5e1c8e5c66e657a176a0cd881d39 (diff)
downloadphosphor-logging-e5e3a9ccd0c3d13f63e9e1a730bd3a8cb66b48dd.zip
phosphor-logging-e5e3a9ccd0c3d13f63e9e1a730bd3a8cb66b48dd.tar.gz
utils: restart: Fix restart bug
bc89289f48ce5e1c8e5c66e657a176a0cd881d39 introduced a regression in the type signature of the RestartUnit call. The "replace" argument was accidentally deleted. Change-Id: I44313997b8b72b7163ad8b43ed2b45a01cb54e44 Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r--phosphor-rsyslog-config/utils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/phosphor-rsyslog-config/utils.hpp b/phosphor-rsyslog-config/utils.hpp
index 30799cd..f5df8ae 100644
--- a/phosphor-rsyslog-config/utils.hpp
+++ b/phosphor-rsyslog-config/utils.hpp
@@ -28,7 +28,7 @@ void restart()
{
auto method = bus.new_method_call(SYSTEMD_BUSNAME, SYSTEMD_PATH,
SYSTEMD_INTERFACE, "RestartUnit");
- method.append(service);
+ method.append(service, "replace");
bus.call_noreply(method);
}
}
OpenPOWER on IntegriCloud