-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Gareth,

> Sorry for this being slightly off topic, but can someone tell me how to
> disable the ouput from maven-proxy?

If you don't need the output, you can redirect it to /dev/null. But for
security reasons I suggest to redirect it to files so you can check for
any errors.

I've written some short scripts to start/stop the proxy and to clean up
the logs:

$ cat start-proxy.sh
#!/bin/sh
echo "Starting Maven Proxy..."
JAVA_HOME=/usr/local/jdk1.5.0
nohup $JAVA_HOME/bin/java -jar maven-proxy-standalone-0.2-app.jar 
maven-proxy.properties 2>error.log 1>out.log &


$ cat clean-logs.sh
#!/bin/sh
cp /dev/null error.log
cp /dev/null out.log
cp /dev/null maven-proxy.velocity.log


$ cat stop-proxy.sh
#!/bin/sh
PROCID=`ps auxwww | grep maven-proxy | grep -v grep | sed -e 's:^heit *::g' -e 
's: .*$::g'`
if [ ! -z "$PROCID" ]; then
echo "Killing process with id: $PROCID"
  kill $PROCID
else
  echo "Maven Proxy not running"
fi


Scripts running on a FreeBSD machine; on other OSes this should be a bit
different

I guess cleaning the logs should also work when the proxy is running.


HTH

Thorsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEIoN9QvObkgCcDe0RAnRMAJ4gQtYscS3tFtDPLVbq8XazgTtNqQCguEF/
Ag+eXaOOMbeUgTH7+LKorYY=
=uumv
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to