- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: what file do you modify to stop a process at s...
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
01-09-2004 03:18 AM
01-09-2004 03:18 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2004 03:22 AM
01-09-2004 03:22 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2004 03:22 AM
01-09-2004 03:22 AM
Re: what file do you modify to stop a process at shutdown/reboot
Usually a startup/shutdown script is place in /sbin/init.d/{processname} and links are made from the appropriate run level directories. For example:
# ll /sbin/*/*webd
-r-sr-xr-x 1 root sys 2929 Feb 23 2001 /sbin/init.d/webd
lrwxrwxrwx 1 root sys 17 Jun 14 2000 /sbin/rc2.d/K001webd -
> /sbin/init.d/webd
lrwxrwxrwx 1 root sys 17 Jun 19 2000 /sbin/rc3.d/S999webd -
> /sbin/init.d/webd
The K001webd link is for shutdown, the S999 webd link is the startup.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2004 03:24 AM
01-09-2004 03:24 AM
Re: what file do you modify to stop a process at shutdown/reboot
/sbin/init.d
links in /sbin/rc#.d
replace # with run level link to scrpts in /sbin/init.d
To have a startups script at run level 3 create a soft link pointing to the /sbin/init.d script starting with a captial S
For shutdown start the softlink with a capital K
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
01-09-2004 04:00 AM
01-09-2004 04:00 AM
Re: what file do you modify to stop a process at shutdown/reboot
For an example, look at:
../etc/rc.config.d/cron
../sbin/init.d/cron
../sbin/rc2.d/S730cron
../sbin/rc1.d/K270cron
(Except that I put my scripts i:
..rc4.d ..(start)
..rc3.d ..(kill)
I also change my /etc/inittab first line to say "4" instead of "3":
..# head /etc/inittab
..init:4:initdefault:
Here's another good trick. The total of your SXXX and KXXX should be 1000, as above. That ensures that the processes start and stop in the same relative order.