LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Where is the output from my init.d script? (http://www.linuxquestions.org/questions/ubuntu-63/where-is-the-output-from-my-init-d-script-460612/)

PostPCMan 07-03-2006 12:52 PM

Where is the output from my init.d script?
 
I've written my first init.d script, loosely based on init.d/skeleton. I know that it's run, because the process is up, but I can't find the script output anywhere. It has several echo's in it. I've grepped for the expected output in /var/log/*, and in the dmesg output, but no luck. Where can I see these?

Also, if the process generates any errors during operation, where would I see those? Basically, what is stdout and stderr set to for a script run by rc.d, and for the process spawned by that script?

I'm running 6.06 desktop.

Thanks much for any help.

raskin 07-03-2006 01:09 PM

Possibly, nowhere - or on console, which is the same. Maybe you can use logger? man logger. Also man syslogd, man syslog, man syslog.conf .


All times are GMT -5. The time now is 11:08 PM.