supervise-daemon: make an error message more verbose

This commit is contained in:
William Hubbs 2018-02-27 16:02:20 -06:00
parent e51dc29e2f
commit 038c03bef3

View File

@ -581,7 +581,8 @@ int main(int argc, char **argv)
openlog(applet, LOG_PID, LOG_DAEMON); openlog(applet, LOG_PID, LOG_DAEMON);
if (argc >= 1 && svcname && strcmp(argv[1], svcname)) if (argc >= 1 && svcname && strcmp(argv[1], svcname))
eerrorx("%s: the first argument must be %s", applet, svcname); eerrorx("%s: the first argument is %s and must be %s",
applet, argv[1], svcname);
if ((tmp = getenv("SSD_NICELEVEL"))) if ((tmp = getenv("SSD_NICELEVEL")))
if (sscanf(tmp, "%d", &nicelevel) != 1) if (sscanf(tmp, "%d", &nicelevel) != 1)