Maybe I'm mistaken but I believe you need to leave at least 1 entry from the 
previous file to retain the last job number.  Otherwise, it restarts from 1.  

-----Original Message-----
From: Skylar Thompson <skyl...@uw.edu> 
Sent: Tuesday, January 29, 2019 12:16 PM
To: users@gridengine.org
Subject: Re: [gridengine users] starting a new gridengine accounting file

On Tue, Jan 29, 2019 at 12:06:47PM -0500, John Young wrote:
> On 1/29/19 11:15 AM, Skylar Thompson wrote:
> > Hi John,
> > 
> > Have you looked at using the ${SGE_ROOT}/util/logchecker.sh script? 
> > There's documentation on setting it up in doc/logfile-trimming.asc.
> > 
> Hi Skylar,
> 
>    I hadn't really looked at that file because the accounting file is 
> not a "log" file in the usual sense, but I just looked at it now and 
> see that it says:
> 
> #
> # This is a template script for moving, deleting, compressing Grid 
> Engine # "messages" files and the "accounting" file #
> 
> so it looks like it handles the accounting file also.  Thanks for your 
> help!

You're welcome! As Tina pointed out, you can use logrotate as well (assuming 
it's available on your OS), but IIRC you have to set it to do "copytruncate" 
rather than the default move action (or maybe that's a memory remnant from an 
old version of GE?).

--
-- Skylar Thompson (skyl...@u.washington.edu)
-- Genome Sciences Department, System Administrator
-- Foege Building S046, (206)-685-7354
-- University of Washington School of Medicine


_______________________________________________
users mailing list
users@gridengine.org
https://gridengine.org/mailman/listinfo/users

Reply via email to