- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Pls verify my uderstanding about "starting the...
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
Discussions
Discussions
Forums
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
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
тАО06-29-2009 09:33 AM
тАО06-29-2009 09:33 AM
I am new to hpux.
I have understood some thing about "starting the services automatically".
For a say, we want to run samba (cifs) service automatically.
Default runlevel - 3
1)During booting, /sbin/rc will call all the files starting with S in all runlevels directories (rc1.d, rc2.d, rc3.d, rc4.d)
2)So it will call the file "S900samba" available in /sbin/rc2.d.
3)Then system will check "/etc/rc.config.d/samba" for the entry "RUN_SAMBA=1".
if that is available then it will start the samba.
if that is "RUN_SAMBA=0" then it will not start the samba.
Is it correct?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 09:39 AM
тАО06-29-2009 09:39 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 09:41 AM
тАО06-29-2009 09:41 AM
Re: Pls verify my uderstanding about "starting the services automatically"
2) Correct
3) Correct
Actually rc may check RUN_SAMBA first, but you've essentially got it right and the actual sequence can be checked in the rc man page.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 09:46 AM
тАО06-29-2009 09:46 AM
Re: Pls verify my uderstanding about "starting the services automatically"
Your understanding above is correct.
For confirmation do a "man rc" or refer to the following link, which is still relevant even though it relates to HP-UX 10.x :
http://docs.hp.com/en/934/startup.pdf
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 09:46 AM
тАО06-29-2009 09:46 AM
Re: Pls verify my uderstanding about "starting the services automatically"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 09:47 AM
тАО06-29-2009 09:47 AM
Re: Pls verify my uderstanding about "starting the services automatically"
Your understanding is correct.
The soft link S900samba should link to the /sbin/init.d/ script that starts samba.
Everything else is on the nose.
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
тАО06-29-2009 09:57 AM
тАО06-29-2009 09:57 AM
Re: Pls verify my uderstanding about "starting the services automatically"
Yes you are right
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 10:38 AM
тАО06-29-2009 10:38 AM
Re: Pls verify my uderstanding about "starting the services automatically"
1)In that files we have to mention the details about auto starting?
2)Have all the file available in runlevel directories been created automatically during installing the HPUX?.
3)If we need some startup scripts, then we can include them in the runlevel folder?
Am i correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2009 10:43 AM
тАО06-29-2009 10:43 AM
Re: Pls verify my uderstanding about "starting the services automatically"
So all the service have a configuraion file in "/etc/rc.config.d".
1)In that files we have to mention the details about auto starting?
Yes there is written documentation int he /etc/rc.config.d files. As far as I know this structure is unique to HP-UX though I've implemented on Linux and am sure it is still driving my last supervisor up a wall.
2)Have all the file available in runlevel directories been created automatically during installing the HPUX?.
The directories are created automatically.
The soft links are sometimes created automatically (ex sshd) sometimes you need to do it yourself.
3)If we need some startup scripts, then we can include them in the runlevel folder?
No.
Startup scripts go in /sbin/init.d
The /sbin/rc.X.d directories include soft links to the scripts in /sbin/init.d
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
тАО06-29-2009 10:49 AM
тАО06-29-2009 10:49 AM
Re: Pls verify my uderstanding about "starting the services automatically"
For first teo you are correct.And if you want to put start up script manually in rc.xx then you first need to crate in /sbin/init.d and then crate soft linjk in rc.xx directory.
Regards
Sunny