bmc: move verify systemd mode to parameter

Move the mode for the trigger service to a parameter instead of
hard-coding it.  This isn't yet a json configuration option, that'll be
next.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I59564320015c22be1ec3a4701479d0ee93b9f1f7
diff --git a/bmc/verify_systemd.cpp b/bmc/verify_systemd.cpp
index f7b88b0..e3316a0 100644
--- a/bmc/verify_systemd.cpp
+++ b/bmc/verify_systemd.cpp
@@ -30,9 +30,11 @@
 std::unique_ptr<TriggerableActionInterface>
     SystemdVerification::CreateVerification(sdbusplus::bus::bus&& bus,
                                             const std::string& path,
-                                            const std::string& service)
+                                            const std::string& service,
+                                            const std::string& mode)
 {
-    return std::make_unique<SystemdVerification>(std::move(bus), path, service);
+    return std::make_unique<SystemdVerification>(std::move(bus), path, service,
+                                                 mode);
 }
 
 bool SystemdVerification::trigger()
@@ -44,7 +46,7 @@
     auto method = bus.new_method_call(systemdService, systemdRoot,
                                       systemdInterface, "StartUnit");
     method.append(triggerService);
-    method.append("replace");
+    method.append(mode);
 
     try
     {
@@ -97,4 +99,9 @@
     return result;
 }
 
+const std::string SystemdVerification::getMode() const
+{
+    return mode;
+}
+
 } // namespace ipmi_flash