HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Where to put startup script
Operating System - HP-UX
1836617
Members
1957
Online
110102
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
12-01-2000 12:36 PM
12-01-2000 12:36 PM
Hi,
I have a script that I want to add when the system starts to add static routes. It reads a config file which contains the routes. This file is maintained by a non-root person. Will the file be run if it is placed in the /sbin/init.d directory? I tried adding the static routes to /etc/rc.confid.d/netconf file but the addition routes don't get added because /etc/rc.log file says routes where attemped to be added before the interface was up.
Tnx,
Mike
I have a script that I want to add when the system starts to add static routes. It reads a config file which contains the routes. This file is maintained by a non-root person. Will the file be run if it is placed in the /sbin/init.d directory? I tried adding the static routes to /etc/rc.confid.d/netconf file but the addition routes don't get added because /etc/rc.log file says routes where attemped to be added before the interface was up.
Tnx,
Mike
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2000 12:45 PM
12-01-2000 12:45 PM
Solution
Mike, your script should run after /sbin/rc2.d/S340net so place the file in /sbin/init.d and create a soft link in the /sbin/rc2.d directory with a name that begins with SXXXyourscript where XXX is greater than 340.
read the information in /usr/share/doc/start_up.txt about startup scripts.
read the information in /usr/share/doc/start_up.txt about startup scripts.
nothing wrong with me that a few lines of code cannot fix!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2000 12:46 PM
12-01-2000 12:46 PM
Re: Where to put startup script
Hi,
/sbin/init.d is the correct place to put the script but you will also have to add a symbolic link (not a hard link) pointing to the script in /sbin/rc2.d.
The symbolic link name is important. It should be in the form SxxxScriptName. The S causes the script to run when the runlevel is entered from a lower runlevel. The xxx is a 3 digit number that indicates when the script should be run relative to the other scripts. Make sure your script is run after the net script has executed. ScriptName will typically match what the script name in /sbin/init.d.
Let me know if this helps or if you need more information.
--Bruce
/sbin/init.d is the correct place to put the script but you will also have to add a symbolic link (not a hard link) pointing to the script in /sbin/rc2.d.
The symbolic link name is important. It should be in the form SxxxScriptName. The S causes the script to run when the runlevel is entered from a lower runlevel. The xxx is a 3 digit number that indicates when the script should be run relative to the other scripts. Make sure your script is run after the net script has executed. ScriptName will typically match what the script name in /sbin/init.d.
Let me know if this helps or if you need more information.
--Bruce
www.stratech.com/training
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2000 10:28 PM
12-03-2000 10:28 PM
Re: Where to put startup script
Hi,
Copy any script from /sbin/init.d and change according to your requirment, after that put your script in /sbin/init.d and /etc/rc.config.d and link ( Symbolic ) into /sbin/rc2.d as S??????. The script name will start with S.
rgds.
Copy any script from /sbin/init.d and change according to your requirment, after that put your script in /sbin/init.d and /etc/rc.config.d and link ( Symbolic ) into /sbin/rc2.d as S??????. The script name will start with S.
rgds.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP