Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a Debian system and have an init script in /etc/init.d/ that starts a daemon using start-stop-daemon:

start-stop-daemon --start --quiet --pidfile /tmp/ --exec /usr/bin/somebin || return 2

If /usr/bin/somebin writes to STDERR, does that output automatically get written to the syslog? Or do I have to do something explicit to get output to STDERR into the syslog?

share|improve this question

I haven't got a Debian based handy to test, but I remember it doesn't automatically redirect to the syslog. You must manually handle with something like this:

>> /var/log/myproject.log 2>&1
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.