From d47914155055418fc8e01791fcca71c9c1efb064 Mon Sep 17 00:00:00 2001
From: w1146869587 <wah1146869587@126.com>
Date: 星期五, 05 十一月 2021 17:12:26 +0800
Subject: [PATCH] mdy git
---
mbwatch/qtservice/qtservice.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mbwatch/qtservice/qtservice.cpp b/mbwatch/qtservice/qtservice.cpp
index 1bfedaf..5eae058 100644
--- a/mbwatch/qtservice/qtservice.cpp
+++ b/mbwatch/qtservice/qtservice.cpp
@@ -812,13 +812,13 @@
printf("is %s", (d_ptr->controller.isInstalled() ? "installed" : "not installed"));
printf(" and %s\n\n", (d_ptr->controller.isRunning() ? "running" : "not running"));
return 0;
- } else if (a == QLatin1String("-s") || a == QLatin1String("-start")) {
+ } else if (a == QLatin1String("-e") || a == QLatin1String("-exec")) {
d_ptr->args.removeAt(1);
int ec = d_ptr->run(false, d_ptr->args);
if (ec == -1)
qErrnoWarning("The service could not be executed.");
return ec;
- } else if (a == QLatin1String("-ss") || a == QLatin1String("-stop")) {
+ } else if (a == QLatin1String("-t") || a == QLatin1String("-terminate")) {
if (!d_ptr->controller.stop())
qErrnoWarning("The service could not be stopped.");
return 0;
--
Gitblit v1.9.1