Il giorno mar, 20/07/2010 alle 08.34 +0200, Torsten Werner ha scritto:
> But the init script runs
>   chown -R $JETTY_USER:adm "$LOGDIR"
> after rotatelogs.

I correct myself.

The problem is that the sudo -b option was sending the rotatelog command
in backgroud.

So, I think is enough to replace:

     - sudo -b -u $JETTY_USER $ROTATELOGS "$LOGDIR/out.log" 86400 \
     - < "$LOGDIR/out.log"
  >>>>>>>>
     + $ROTATELOGS "$LOGDIR/out.log" 86400 \
     + < "$LOGDIR/out.log" &

In this way it will run as the previous version.

Thank you
Michele Renda




__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers>. Please 
use
[email protected] for discussions and questions.

Reply via email to