- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rc script kill_proc.
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
05-01-2006 08:09 PM
05-01-2006 08:09 PM
rc script kill_proc.
When "kill_proc ()" part of rc script is used?
Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 08:15 PM
05-01-2006 08:15 PM
Re: rc script kill_proc.
Its used to shut down the processes/daemons created by the start section of the script.
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
05-01-2006 08:19 PM
05-01-2006 08:19 PM
Re: rc script kill_proc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 08:20 PM
05-01-2006 08:20 PM
Re: rc script kill_proc.
Basically you have a single script to start and stop a particular process/application when you want to start/stop that process as part of system startup/shutdown. The scripts are kept in the /sbin/rcx.d where x is the run level.
In the script wou have a start section and a stop section - The parameter start or stop is passed to this script depending on whether you are starting up or shutting down - by the rc script. and depending on this parameter the corresponding section/function is executed.
Hope this clarifies,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 08:23 PM
05-01-2006 08:23 PM
Re: rc script kill_proc.
Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 08:27 PM
05-01-2006 08:27 PM
Re: rc script kill_proc.
You are right, in way that it is done in the stop section. If you had noticed in pre 11.00 versions there weren't any functions defined in the rc scripts. Now its become more modularized by using "functions". If i wouldn't have functions I had be clustering all the last activies in the stop section, namely kill the procs and cleaning up files etc. By modularizing, I can write a function namely "kill_procs" and "clean_files" etc,etc and that way I can summon the funtion whenever i require. There by it even gives a flexibility of repeating the sequence of commands using one liners if I were to embed a conditional statement in "stop" section, instead of repeating all the lines again and again.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 08:31 PM
05-01-2006 08:31 PM
Re: rc script kill_proc.
stop, start are sections to be executed in "case" statement.
whereas kill_proc is just a function. something like aliasing a set of statements in shell script. It does not have any baring to summun the rc script itself, may you are confused with the fact that ,when will i do the following...
/sbin/init.d/cron kill_proc
actually the only parameter that can be validly passed are..
stop,start,stop_mesg and start_mesg
regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2006 09:58 PM
05-01-2006 09:58 PM