- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron/rc syncronization
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
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
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
04-14-2003 06:23 AM
04-14-2003 06:23 AM
cron/rc syncronization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 06:29 AM
04-14-2003 06:29 AM
Re: cron/rc syncronization
So, is the application started manually after each reboot now ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 06:29 AM
04-14-2003 06:29 AM
Re: cron/rc syncronization
It sounds like you just need one script that rc and cron call for starting and stopping your application. I'd suggest asking the user for the commands to start and stop things, put them in a script and test them, and ask them when things need to get started and stopped. Then, let cron and rc call that same script.
Your user shouldn't get a vote on a technical matter like that just because "we've never done it that way before". I'm not trying to be a hard case, [well, maybe I am :)] but sometimes the users just need to provide the requirements and let you provide the engineering for the solution.
Of course, if your user isn't real savvy, you could make a symlink to the one script used by rc, call the symlink in your cron job, and tell them "Hey, look at that, it IS a different script." :)
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 06:30 AM
04-14-2003 06:30 AM
Re: cron/rc syncronization
crontab -l > /tmp/subset
Edit the subset, take out the timing information since rc doesn't work that way.
create a script called what you want in /sbin/init.d that has standard start stop logic in it. Perhaps copy template and use that.
Then paste in the cron commands you need.
It is a bit of a kludge but quite possible.
ln -s /sbin/init.d/newscript /sbin/rc3.d/S800newscript
ln -s /sbin/init.d/newscript /sbin/rc2.d/K200newscript
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 06:33 AM
04-14-2003 06:33 AM
Re: cron/rc syncronization
I suggest 'crontab' entries that reference the 'rc' script. In that way, if you change the *script* it's changed for both bootup and for night 'cron's. The "user" should be *you* the administrator setting the standards!
For example, 'cron' could specify:
/sbin/init.d/<scriptname> stop
...and:
/sbin/init.d/<scriptname> start
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 06:37 AM
04-14-2003 06:37 AM
Re: cron/rc syncronization
you can get the standard 'start/stop' logic steven pointed out by copying /sbin/init.d/template to /sbin/init.d/new_script and edit appropriately. If you decide to use flags for the script in /etc/rc.config.d, be sure to modify new_script for the intentional typos left in the template. (/etc/rc.config.d, not /etc/rc.config & make sure to change $CONTROL_VARIABLE as appropriate)
Good Luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 06:44 AM
04-14-2003 06:44 AM
Re: cron/rc syncronization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 09:57 AM
04-14-2003 09:57 AM
Re: cron/rc syncronization
I see your points. Maybe you could 'sell' them this idea:
a> Have both the cron and rc scripts point to the same file(s), which contains the start/stop commands.
b> Both the rc and cron scripts would just be wrappers that point (or call) to the same executable script.
That should allow for testing of the cron scripts, and still maintain cohesiveness to the rc scripts.
Allow the users to be present during testing of the scripts, and them provide them with a written 'how-to test' guide.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 03:11 AM
04-16-2003 03:11 AM