Operating System - HP-UX
1762897 Members
2096 Online
108909 Solutions
New Discussion юеВ

Re: about file in /var/spool/cron/tmp

 
Matthew_50
Valued Contributor

about file in /var/spool/cron/tmp

Dear All,

we have a server, which cron daemon will abnormal frequently, I notice that there are about 186 empty files in /var/spool/cron/tmp, what are they for ? can i delete them ?

the behavior before cron daemon abnormal, always cron queue too large, then the daemon abort, but we only have 5 entries in root's crontab, and only root have the cron permission.

How can I solve this issue ? Thank you.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: about file in /var/spool/cron/tmp

The empty files are most likely (null) output from cron jobs - I have a bunch of them, too. They should be safely delete-able.

As far as your issues with the cron daemon - need more information. Can you expand on "cron queue too large", and "then the daemon abort"?


Pete

Pete
RAC_1
Honored Contributor

Re: about file in /var/spool/cron/tmp

Those files are from cron daemon and are generated as errors files for diff. cron jobes.
You can surely delete those files.
There is no substitute to HARDWORK
Robert-Jan Goossens
Honored Contributor

Re: about file in /var/spool/cron/tmp

could you post the /var/adm/cron/queuedefs file.

Robert-Jan
Matthew_50
Valued Contributor

Re: about file in /var/spool/cron/tmp

#cat /var/adm/cron/queuedefs
a.4j1n
b.2j2n90w
c.300j1n
Robert-Jan Goossens
Honored Contributor

Re: about file in /var/spool/cron/tmp

#cat /var/adm/cron/queuedefs
a.4j1n
b.2j2n90w
c.300j1n

300 simultaneously cronjobs is to high --> 20 is more then enough. change last line into

c.20j1n

and stop en start the crondaemon.

#/sbin/init.d/cron stop/start

Robert-Jan
Kent Ostby
Honored Contributor

Re: about file in /var/spool/cron/tmp

Matthew --

It's probably fine to delete the null cron jobs.

To be on the safe side, check your system uptime and only delete the ones that have a date on them prior to your last reboot.

Oz
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"