Hi Jaak,

Instead of hacking your own renderd service start/stop/.. script (eg.
creating a file /etc/init.d/renderd)...
...you can just run renderd in a screen (apt-get install screen) in
-f(oreground) and redirect its output with redirection to some file while
keep it going to stdout.

screen -S renderd_screen #creates a screen named renderd_screen
#run this in screen now
./renderd -f 2>&1 | tee -a /var/log/renderd
# -f => runs renderd in foreground, 2>&1 copies stderr to stdout, | tee -a
... takes previous process's stdout and puts it into /var/log/renderd
#and (D)etach your screen with Ctrl+A then D

If you did not know screen, google for linux screen tutorial to get help on
using screen.

Take care

Jonathan

On Tue, Jan 12, 2010 at 12:08 PM, Jaak Laineste <jaak.laine...@gmail.com>wrote:

> Hello,
>  Is there a way to save renderd debug log to a file? I can see the
> debug log when I start renderd with -f option, but I'd like to run it
> as normal service, silently, but have debug log in e.g.
> /var/log/renderd.log
>
>  I was getting occasional Segmentation Faults in renderd (when I use
> >2 threads), this may be useful for troubleshooting.
>
> --
> Jaak Laineste
>
> _______________________________________________
> dev mailing list
> dev@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>
_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

Reply via email to