We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deb86eb commit 6131f6aCopy full SHA for 6131f6a
2 files changed
scheduler/conf.c
@@ -1048,7 +1048,7 @@ cupsdReadConfiguration(void)
1048
* as an error and exit!
1049
*/
1050
1051
- if (cupsArrayCount(Listeners) == 0)
+ if (cupsArrayCount(Listeners) == 0 && !OnDemand)
1052
{
1053
/*
1054
* No listeners!
scheduler/main.c
@@ -2036,6 +2036,23 @@ service_checkin(void)
2036
service_add_listener(fd, 0);
2037
}
2038
#endif /* HAVE_LAUNCHD */
2039
+
2040
+ if (cupsArrayCount(Listeners) == 0)
2041
+ {
2042
+ /*
2043
+ * No listeners!
2044
+ */
2045
2046
+ cupsdLogMessage(CUPSD_LOG_EMERG,
2047
+ "No valid Listen or Port lines were found in the "
2048
+ "configuration file.");
2049
2050
2051
+ * Commit suicide...
2052
2053
2054
+ cupsdEndProcess(getpid(), 0);
2055
+ }
2056
2057
2058
0 commit comments