GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: UNIX Auto Start Script
Operating System - HP-UX
1847479
Members
2971
Online
110265
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
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
09-22-2004 05:02 PM
09-22-2004 05:02 PM
Hi,
I want to edit a script ,it will be executed automatically when UNIX start , But Just once.
(1) Which directory or system file I should put this script into that let it executed when UNIX start ?
And if it have any error or log when executing, where system will be save it?
(2) If I edit a sciprt to start Oracle Service(svrmgrl and lsnrctl)when UNIX start, Can I use "su" -command to change cureent user form "root" to "oracle" and change it back in my script.
Regards.
K.Y
I want to edit a script ,it will be executed automatically when UNIX start , But Just once.
(1) Which directory or system file I should put this script into that let it executed when UNIX start ?
And if it have any error or log when executing, where system will be save it?
(2) If I edit a sciprt to start Oracle Service(svrmgrl and lsnrctl)when UNIX start, Can I use "su" -command to change cureent user form "root" to "oracle" and change it back in my script.
Regards.
K.Y
Service is King
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 05:17 PM
09-22-2004 05:17 PM
Re: UNIX Auto Start Script
Hi k.y
you can do very easily . by adding your script in /sbin/rc /S##<script name> where ## is appropriate number which should not conflict with others . if you want to start the process
with only from oracle user while system boots that also possbile .
2) you can start this with inetd daemon . there is a file /etc/inetd.conf in this you can mention the desired user name also . to make it working you have to mention the proper listener
service name which should present in the /etc/services also.
Thanks and regards
Ramkumar
you can do very easily . by adding your script in /sbin/rc
with only from oracle user while system boots that also possbile .
2) you can start this with inetd daemon . there is a file /etc/inetd.conf in this you can mention the desired user name also . to make it working you have to mention the proper listener
service name which should present in the /etc/services also.
Thanks and regards
Ramkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 05:22 PM
09-22-2004 05:22 PM
Solution
Hi,KY,Chuang
Have a look at the following(recovery hand book)
This link gives you what you want to do
http://www2.itrc.hp.com/service/iv/docDisplay.do?docId=prodITRC/DE_SW_UX_swrec_EN_01_E/Startup.pdf
regards
Have a look at the following(recovery hand book)
This link gives you what you want to do
http://www2.itrc.hp.com/service/iv/docDisplay.do?docId=prodITRC/DE_SW_UX_swrec_EN_01_E/Startup.pdf
regards
Easy going at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 05:38 PM
09-22-2004 05:38 PM
Re: UNIX Auto Start Script
1> Put the script on corrresponding startup level as /sbin/rc#.d/ directory there. And give the execution permission to that file, else it will not be executed. See some other files located at /sbin/rc#.d/ directoy. It is having standard format there. IF you want to try before startup try it on shell command there right now. If u have problem, that will be good to avoid during startup.
To check the script problem try to run with debugging mode as set -x on shell first.
Error log / startup information's will be in /etc/rc.log file there.
2> Yes. You can do it as su - -c to be executed there.
If you are running su from root then no passwd needed there. After execution of su with command it will return to root there.
See man rc, su
To check the script problem try to run with debugging mode as set -x on shell first.
Error log / startup information's will be in /etc/rc.log file there.
2> Yes. You can do it as su -
If you are running su from root then no passwd needed there. After execution of su with command it will return to root there.
See man rc, su
Easy to suggest when don't know about the problem!
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 2026 Hewlett Packard Enterprise Development LP