Re: Cron <gump@gump-vm> /usr/bin/find /tmp -type f -ctime +6 | /usr/bin/xargs -r /bin/rm > /dev/null 2>&1

Mark Thomas <[email protected]>
Newsgroups gmane.comp.jakarta.gump
Message-ID <[email protected]>
On 31/05/2019 13:22, Stefan Bodewig wrote:
> On 2019-05-31, sebb wrote:
> 
>> The command:
> 
>> /usr/bin/find /tmp -type f -ctime +6 | /usr/bin/xargs -r /bin/rm >
>> /dev/null 2>&1
> 
>> should perhaps be
> 
>> /usr/bin/find /tmp -type f -ctime +6 > /dev/null 2>&1 | /usr/bin/xargs
>> -r /bin/rm
> 
>> or maybe
> 
>> { /usr/bin/find /tmp -type f -ctime +6 | /usr/bin/xargs -r /bin/rm } >
>> /dev/null 2>&1
> 
> Probably,
> 
> Infra is in the process of setting up a new VM for us and the mails will
> keep coming in until somebody of us has time to complete the post-puppet
> setup - which may be a few weeks to be honest.
> 
> https://github.com/apache/infrastructure-puppet/blob/deployment/modules/gump_server/manifests/cronjobs.pp
> 
> contains what would need to be fixed IIRC.

I can find some time. To be clear the issue is that the cron jobs aren't
quite defined correctly and those definitions need to be fixed? And the
fixes need to be made in the file quote above and then Puppet will
deploy the updated cron jobs to our new VM?

Mark
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.