- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: automatic service start-up
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
06-19-2005 08:18 PM
06-19-2005 08:18 PM
i would like to ask for your help in quite an easy matter.
my question is: how to configure a certain service in such a way that it is started automatically when the system goes up?
i have a custom samba server running and i don't want to start it manually each time the system is rebooted. is there anything here in HPUX resembling the WIN's "autostart" group, so that i would be able to add service to it?
thank you in advance,
regards,
maciek
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 08:28 PM
06-19-2005 08:28 PM
Solutionhttp://www.unixhub.com/docs/hpux/hpux_boot.html
This describes how the boot process uses the rc scripts.
Then you need to make and link one to suit whatever you want to start.
HP provide a template called /sbin/init.d/template. Copy this to eg /sbin/init.d/myservice and edit to that it will start and stop your script as expected. Then link it's start and kill scripts in /sbin/rcX.d directories as required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 08:30 PM
06-19-2005 08:30 PM
Re: automatic service start-up
change the RUN_SAMBA value from 0 to 1 to disable the autostart.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 08:51 PM
06-19-2005 08:51 PM
Re: automatic service start-up
So with these usually all that's left to be done is enable a switch in a config file in /etc/rc.config.d/ (i.e. setting a variable to either 1 or 0), and creating softlinks that point from the init runlevel subdirs where the application should either be started or stopped to the init script.
Some ports like e.g. the HP-UX OpenSSH port Secure Shell even do these minor tasks for you already as a postinstallation step.
However sometimes you have to write an init run shell script for an application oneself.
But this usually only requires minor mastery of shell scripting.
To ease things HP-UX provides a file
/sbin/init.d/template
that you simply copy and use, as the name suggests, as a template file that you only modify or extend very little.
To learn more about the HP-UX SysV init process I'd advise you to carefully read the manpages of init and rc.
Though generally most SysV Unices behave similarly there are subtle differences in the init process e.g between Solaris and HP-UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 04:44 PM
06-20-2005 04:44 PM
Re: automatic service start-up
Please check this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=903953
Regards
Ganesha Sridhara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 12:47 AM
06-21-2005 12:47 AM
Re: automatic service start-up
As an addition to other correct replies
you can keep such a kind of doc.
Good luck,