- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cron started through inittab
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
тАО06-16-2003 10:28 AM
тАО06-16-2003 10:28 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2003 10:33 AM
тАО06-16-2003 10:33 AM
Re: Cron started through inittab
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2003 10:39 AM
тАО06-16-2003 10:39 AM
Re: Cron started through inittab
Read man pages for a better idea:
# man cron
# man crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2003 10:42 AM
тАО06-16-2003 10:42 AM
Re: Cron started through inittab
If there is any restrinctin I can justify that this will not work, but I found nothing saying that I can't use cron in inittab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2003 10:53 AM
тАО06-16-2003 10:53 AM
Re: Cron started through inittab
1) From man pages of cron (1m) - "Since cron never exits, it should be executed only once. This is best done by running cron from the initialization process with the startup script /sbin/init.d/cron (see init(1M))."
This answers his concerns about running cron indefenitely.
2) Adding processes/programs in /etc/inittab for startup is an old fashion way. It was used in older days but not now. You can easily manage and administrate rc scripts which is actually started by "rc" command in inittab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2003 11:16 AM
тАО06-16-2003 11:16 AM
Re: Cron started through inittab
I know this type of bosses so if they would
understand that cron never exit you can
change the startup script of cron or made
new one that will check if cron "exit"
start it again!
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2003 11:24 AM
тАО06-16-2003 11:24 AM
Solutionexample...
#!/bin/sh
while 1
do
ps -ef|grep /usr/sbin/cron|grep -v /usr/sbin/cron
if [ $? = 1 ]; then
/usr/sbin/cron
fi
done
...of course, you'll need to write a monitor script that monitors that the cron monitor is running, and so on, and so on....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2003 11:34 AM
тАО06-16-2003 11:34 AM
Re: Cron started through inittab
If this will make him/her feel better, just write a little monitoring script that will check if the cron daemon is running and have someone get an alert (page,email)if not or simply execute the startup script (/sbin/init.d/cron start)from that same monitoring script.
Regards,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2003 11:35 AM
тАО06-16-2003 11:35 AM
Re: Cron started through inittab
1) Look for and install the latest cron cumulative patch.
2) Use the standard rc startup script but let it also start a daemon that does a ps -e grep' ing for cron and then sleeps for 600 seconds or so and checks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2003 01:44 PM
тАО06-17-2003 01:44 PM
Re: Cron started through inittab
Is there a problem with using the :spawn: option on any stanza in the /etc/inittab file? Shouldn't :spawn: restart that process if it has (been) stopped for any reason? Look at other stanzas in inittab that use :spawn: and see if these processes can be re-spawned(ie restarted by the INIT process). I understand that /sbin/init.d contains system shutdown and startup scripts for most system processes, but has the :spawn: option been functionally supplanted by these scripts? I do not think so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2003 01:57 PM
тАО06-17-2003 01:57 PM
Re: Cron started through inittab
If it is, send your boss an email.
If it isn't, restart it and send yourself a piece of mail.