- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Processes in startup
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
05-22-2006 06:57 AM
05-22-2006 06:57 AM
I have a script named start_procs.sh
I need put it in startup
on unix B.11.11
how can i do it?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 07:10 AM
05-22-2006 07:10 AM
SolutionUse the /sbin/init.d/template and copy as another filename - say - /sbin/init.d/myscript
Add your commands in the start and stop section for starting and stopping your script.
Then goto /sbin/rc3.d [ Assuming that you want to start the process at init level 3 ]
ln -s /sbin/init.d/myscript S900myscript
goto /sbin/rc0.d
ln -s /sbin/init.d/myscript K900myscript
Pls refer to this thread for more inputs and advices from others.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1029055
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 07:12 AM
05-22-2006 07:12 AM
Re: Processes in startup
e.g ln -s /sbin/init.d/myscript /sbin/rc3.d/S800myscript. If you also want to stop the process automatically then put the appropriate commands in the stop) section and create a symbolin link in the N-1 directory.
e.g ln -s /sbin/init.d/myscript /sbin/rc2.d/K200myscript.
Note that, by convention, your 3-digit 'S' value + your 3-digit 'K' value should add to 1000. This tends to make the start and stop occur in the correct order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 07:49 AM
05-22-2006 07:49 AM
Re: Processes in startup
thanks ...
i have other doubt, could be start processes from startup under an owner differet to root?
I mean, i require some processes be running with userid named "userprocs" which is differetn to root.
can i put these processes to be run into a script and they be run with other userid different to root?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 08:00 AM
05-22-2006 08:00 AM
Re: Processes in startup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 09:39 AM
05-22-2006 09:39 AM
Re: Processes in startup
could you give an example please ?
"su username -c command arg1 arg2 ..."
thanks ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 09:50 AM
05-22-2006 09:50 AM
Re: Processes in startup
su userprocs -c /xxx/yyy/start_procs.sh
NOTE: Your user "userprocs" violates the traditional 8 character login limit so it should be a shorter name. /xxx/yyy/start_procs.sh should be the absolute pathname to whereever your script is located and it should have an explicit "shebang" line like
#!/usr/sbin/sh
as the very first like of your script. Any needed arguments can also be passed to start_procs.sh as additional arguments following the command name in the su command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 11:02 AM
05-22-2006 11:02 AM
Re: Processes in startup
Really, really thanks a lot for your definition about su command ... really you explains things an easy way!!!!
if i could give you more points, i will.
thanks !!!
Manuales.