Re: [galaxy-dev] How to rotate Galaxy log file

2012-10-01 Thread Shantanu Pavgi
On Oct 1, 2012, at 2:57 PM, Lance Parsons wrote: > I also use a logrotate script: '/etc/logrotate.d/galaxy' > > /path/to/galaxy/install/*.log { > weekly > rotate 52 > copytruncate > } > > > The 'compress' options seems like it might be nice, and I'm not sure of the > effect of siz

Re: [galaxy-dev] How to rotate Galaxy log file

2012-10-01 Thread Lance Parsons
I also use a logrotate script: '/etc/logrotate.d/galaxy' /path/to/galaxy/install/*.log { weekly rotate 52 copytruncate } The 'compress' options seems like it might be nice, and I'm not sure of the effect of size 1. I don't think the 'create 640 galaxy-user galaxy-group' has an

Re: [galaxy-dev] How to rotate Galaxy log file

2012-09-25 Thread Nate Coraor
On Sep 25, 2012, at 12:35 PM, Lukasz Lacinski wrote: > I use start-stop-daemon that sends SIGTERM (which is a default signal sent to > a service that is being asked to stop) to Galaxy to let Galaxy store all > information in a database, close files, etc., and terminate itself. When > Galaxy pro

Re: [galaxy-dev] How to rotate Galaxy log file

2012-09-25 Thread Shantanu Pavgi
On Sep 25, 2012, at 6:57 AM, Lukasz Lacinski wrote: > On 9/24/12 12:40 PM, Nate Coraor wrote: >> On Sep 19, 2012, at 9:50 AM, Jennifer Jackson wrote: >> >>> repost to galaxy-dev >>> >>> On 9/7/12 6:39 PM, Lukasz Lacinski wrote: Dear All, I use an init script that comes with Gala

Re: [galaxy-dev] How to rotate Galaxy log file

2012-09-25 Thread Lukasz Lacinski
I use start-stop-daemon that sends SIGTERM (which is a default signal sent to a service that is being asked to stop) to Galaxy to let Galaxy store all information in a database, close files, etc., and terminate itself. When Galaxy process is terminated, both shell and python scripts (Galaxy too

Re: [galaxy-dev] How to rotate Galaxy log file

2012-09-25 Thread James Taylor
Galaxy should probably be shutdown with --stop-daemon (depending on how you are running it). In the future we can look at making the logging handle the HUP signal. -- jt On Tue, Sep 25, 2012 at 11:40 AM, Scott McManus wrote: > > Lukasz- > > How are you stopping the process? It's possible that

Re: [galaxy-dev] How to rotate Galaxy log file

2012-09-25 Thread Scott McManus
Lukasz- How are you stopping the process? It's possible that the python task for galaxy is still running. I would recommend trying to send a "kill" signal to that process. Something like "kill -9 PID", where PID is the process id for galaxy, should work. -Scott - Original Message - > O

Re: [galaxy-dev] How to rotate Galaxy log file

2012-09-25 Thread Lukasz Lacinski
On 9/24/12 12:40 PM, Nate Coraor wrote: On Sep 19, 2012, at 9:50 AM, Jennifer Jackson wrote: repost to galaxy-dev On 9/7/12 6:39 PM, Lukasz Lacinski wrote: Dear All, I use an init script that comes with Galaxy in the contrib/ subdirectory to start Galaxy. The log file --log-file /home/galax

Re: [galaxy-dev] How to rotate Galaxy log file

2012-09-24 Thread Nate Coraor
On Sep 19, 2012, at 9:50 AM, Jennifer Jackson wrote: > repost to galaxy-dev > > On 9/7/12 6:39 PM, Lukasz Lacinski wrote: >> Dear All, >> >> I use an init script that comes with Galaxy in the contrib/ subdirectory >> to start Galaxy. The log file >> >> --log-file /home/galaxy/galaxy.log >> >>

[galaxy-dev] How to rotate Galaxy log file

2012-09-19 Thread Jennifer Jackson
repost to galaxy-dev On 9/7/12 6:39 PM, Lukasz Lacinski wrote: Dear All, I use an init script that comes with Galaxy in the contrib/ subdirectory to start Galaxy. The log file --log-file /home/galaxy/galaxy.log specified in the script grows really quickly. How to logrotate the file? Thanks,