- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- crontab disappears after boot
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2004 09:14 PM
тАО11-09-2004 09:14 PM
crontab disappears after boot
i discovered a strange problem on some (not all) of my machines. All machines are identical in configuration, running HP-UX 11.00 in MC/SG-clusters and with mirrored disks.
But on some of this machines roots crontab disappears after reboot. I can't find any message about that, syslog and rc.log doesn't show unusual values.
This crontab contains contains jobs for security-scripts and scripts for truncating large files (auditingfiles etc.).
The machines runs in malfunction if this jobs doesn't run periodically.
i don't know, why this file will removed and where it goes to.
What could be the next steps to check what happened?
I need your help to find a solution for that.
Thanks in advance
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2004 09:18 PM
тАО11-09-2004 09:18 PM
Re: crontab disappears after boot
One the reason that I can think of is a startup job that is messing up the cronjobs. Do the following
#cd /sbin/init.d
#grep crontab *
See if you get anything. Unfortunately init.d scripts may in turn call scripts from another directory in which case you will have to find them manually. OS default scripts won't do this. May one of your customized scripts are doing it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2004 09:21 PM
тАО11-09-2004 09:21 PM
Re: crontab disappears after boot
If this happens after switchover of the cluster the crontab is on standby node and you cannot see it, then you can only copy the crontab to the active node.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2004 09:34 PM
тАО11-09-2004 09:34 PM
Re: crontab disappears after boot
Used this command before i wrote my message here, there's no appearance for crontab in /sbin/init.d
Also no appearance in other scripts, only the crontab for the main-user will be loaded by the MC/SG startup script.
@Borislav:
All machines running with identical parameters, roots crontab is identical on !all! nodes
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2004 09:51 PM
тАО11-09-2004 09:51 PM
Re: crontab disappears after boot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2004 09:59 PM
тАО11-09-2004 09:59 PM
Re: crontab disappears after boot
As far as I know, there is no system default script that will remove the crontab file. As I said before, there may be another script indirectly run from another location by a script in /sbin/init.d. In this case 'grepping' in that directory may not list it.
Coming to the solution - You can keep a copy of your crontab always in root's home directory. You can produce it by simply running 'crontab -l > /root/crontab.root'. Have a startup script in /sbin/init.d that will read crontab.root after 'cron' is up. "crontab /root/crontab.root" will do it. Meanwhile you look for the problem.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2004 10:08 PM
тАО11-09-2004 10:08 PM
Re: crontab disappears after boot
Regards