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'm new to all this stuff, so please forgive if a question is stupid. I'm running a script as daemon, in order to debug it I'm trying to dump logs in file, but no file is created. And if I run script not as daemon log file is created and logs are dumped. What's wrong here?

Thank you in advance!

P.S. I'm running centos

share|improve this question
How are you running it as a daemon? And how are you logging to a file? What language is this script in? Is it a bash/shell script? Or python or perl etc.? – webtoe Feb 28 '12 at 12:56

What do you use in your script to create log files? If the script is too large to show it here, put it to or such.

To write messages to syslog from a shell script, use logger, the results can be found in /var/log/syslog (or elsewhere when you want it).

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.