]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Normalise `dhcpcd is not running` message
authorRoy Marples <roy@marples.name>
Wed, 31 Aug 2022 19:04:11 +0000 (20:04 +0100)
committerRoy Marples <roy@marples.name>
Wed, 31 Aug 2022 19:04:17 +0000 (20:04 +0100)
src/dhcpcd.c

index 149a55c829fd06c934b48241b68676561e5b5201..7a59d758c4fb20ae23b1611d9e809153dfba23d1 100644 (file)
@@ -2155,7 +2155,7 @@ printpidfile:
                        loginfox("sending signal %s to pid %d", siga, pid);
                if (pid == 0 || pid == -1 || kill(pid, sig) != 0) {
                        if (sig != SIGHUP && sig != SIGUSR1 && errno != EPERM)
-                               logerrx(PACKAGE" not running");
+                               logerrx(PACKAGE" is not running");
                        if (pid != 0 && pid != -1 && errno != ESRCH) {
                                logerr("kill");
                                goto exit_failure;
@@ -2275,7 +2275,7 @@ printpidfile:
                                logerr("%s: control_open", __func__);
                        if (ctx.options & DHCPCD_DUMPLEASE) {
                                if (errno == ENOENT)
-                                       logerrx("dhcpcd is not running");
+                                       logerrx(PACKAGE" is not running");
                                goto exit_failure;
                        }
                        if (errno == EPERM || errno == EACCES)