-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way of logging to stdout/stderr when run with -f #4505
Comments
CUPS.org User: mike OK, moving this to 2.1-feature; I'll look into adding a command-line argument to override specific cups-files.conf/cupsd.conf directives, and support stdout/stderr as values for the *Log directives. |
CUPS.org User: mike Fixed in Subversion repository. |
"str4505.patch": Index: scheduler/conf.c--- scheduler/conf.c (revision 12688) #ifdef HAVE_LIBPAPER
@@ -307,7 +325,20 @@
+#elif defined(HAVE_SYSTEMD_SD_JOURNAL_H)
return (0); @@ -806,8 +885,19 @@ if ((fp = cupsFileOpen(ConfigurationFile, "r")) == NULL)
return (0); @@ -820,9 +910,21 @@
@@ -948,12 +1050,24 @@
-#ifdef HAVE_VSYSLOG
+#if defined(HAVE_VSYSLOG) && !defined(HAVE_ASL_H) && !defined(HAVE_SYSTEMD_SD_JOURNAL_H) /*
Index: scheduler/main.c--- scheduler/main.c (revision 12688)
@@ -396,6 +402,8 @@
/*
Index: scheduler/server.c--- scheduler/server.c (revision 12688) if (AccessFile != NULL)
|
Version: 2.1-feature
CUPS.org User: twaugh.redhat
When running 'cupsd -f', there is no way of having e.g. ErrorLog output sent to stderr.
The straightforward approach of putting "ErrorLog /dev/stderr" in /etc/cups/cups-files.conf fails, at least on Linux, because /dev/stderr is a symlink (-> /proc/self/fd/2 -> /dev/pts/...) and opening symlinks is disallowed.
The text was updated successfully, but these errors were encountered: