Re: daemons logging to a file

Bernhard Graf <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
On Friday 31 October 2003 15:27, Charles Cazabon wrote:
> Bernhard Graf <[email protected]> wrote:
> > I want to run a program under svscan with logs piped to multilog.
> > Unfortunately this program can only log to either syslog or to a
> > file.
>
> Can it log to file "/dev/stdout" or similar ("/dev/fd/1", whatever
> your OS has)?

My OS is Linux (SuSE 8.2) and the result is

ERROR: Problem with internal logger. Please check the permissions on the /dev/stdout file.

or

ERROR: Problem with internal logger. Please check the permissions on the /dev/fd/1 file.

When running under svscan /dev/stdout and /dev/fd/1 are:
lrwxrwxrwx  1 root   root    4 May 22 18:50 /dev/stdout -> fd/1
l-wx------  1 root   root   64 Oct 31 15:49 /dev/fd/1 -> pipe:[287250]

But the program runs with privileges of a normal user.
-- 
Bernhard Graf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.