• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1279
  • Last Modified:

HPUX / reboot and crontab

Hi folks,

The past two times I've had to reboot a particular HPUX server, one of the user's crontab file in /var/spool/cron/crontabs .... (only one particular user) gets zero'ed out. All the other files in the dir remain intact.  Any ideas on where to start looking for the cause?

Thanks
0
sonriks
Asked:
sonriks
1 Solution
 
dfkeCommented:
Maybe the user is listed in /var/adm/cron/cron.deny or not listed in /var/adm/cron/cron.allow.
0
 
sonriksAuthor Commented:
the login is listed in the /var/adm/cron/cron.allow file
0
 
slightwv (䄆 Netminder) Commented:
Check through your startup/shutdown scripts to see if there is a script that might have a bug in it.

Where 'username' is the owner of the crontab file:

find /sbin/init.d -exec grep username {} \; -print
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
sonriksAuthor Commented:
there are no references in init.d dir to the username whose crontab file is  being reinitialized.
0
 
slightwv (䄆 Netminder) Commented:
Do you have support with hp?  You might want to contact them on this one.

how much data is on this machine?  Can you afford to run that find/grep from '/'?

Can you reboot again?

Thinking maybe set the permissions to read only and change the owner to root.  reboot and see if anything shows up in the rc log about trying to reset/remove/touch that file.
0
 
gheistCommented:
check all possible hardware logs.
I suspect a filesystem structure error for that particular file, probably borne from disk wear and following read error.

this usually happens to mail spool directories in 5 years...
0
 
sonriksAuthor Commented:
Investigation showed that there was a startup script whichpurged this particular user's crontab file.
thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now