- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding an Application at System 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-05-2003 12:47 AM
05-05-2003 12:47 AM
Adding an Application at System Startup
I would like to add an Application at System Startup. I am using HP-UX 11.0, how do I go about this ?
Regards,
Manjunath.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 01:12 AM
05-05-2003 01:12 AM
Re: Adding an Application at System Startup
11 is like 10
/usr/share/doc/start_up.txt
should be on your box and explains it well
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 01:12 AM
05-05-2003 01:12 AM
Re: Adding an Application at System Startup
You need to add your startup script in /sbin/init.d
Your config file in /etc/rc.config.d
And your stop and start flagfiles in sequencer directories
/sbin/rc0.d < run level
/sbin/rc1.d
etc
Have a look at this doc for more info
http://www4.itrc.hp.com/service/iv/docDisplay.do?docId=/DE_SW_UX_swrec_EN_01_E/Startup.pdf
Here is an example doc for scope_collect
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 01:13 AM
05-05-2003 01:13 AM
Re: Adding an Application at System Startup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 01:17 AM
05-05-2003 01:17 AM
Re: Adding an Application at System Startup
You would have to write a start/stop script that you would put in /sbin/init.d, then create symbolic links : one at your start level as SXXX
have a look at the level /sbin/rc3.d for instance and compare with /sbin/rc2.d
For exemple look at my rc.adsm script put at /sbin/init.d:
#!/sbin/sh
export PATH=/usr/sbin:/usr/bin:/sbin
rval=0
case "$1" in
start_msg)
echo "Start ADSM agent"
;;
stop_msg)
echo "Stop ADSM agent"
;;
start)
(dsmc sched >/tmp/dsm.log 2>&1 )&
;;
stop)
for i in $(ps -ef|grep -i dsmc|grep -v grep|awk '{print $2}')
do
kill -9 $i
done
;;
*)
echo "usage: $0 {start|stop}"
rval=1
;;
esac
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 01:24 AM
05-05-2003 01:24 AM
Re: Adding an Application at System Startup
See this link.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0fdefef4d250d611abdb0090277a778c,00.html
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 12:37 AM
05-06-2003 12:37 AM
Re: Adding an Application at System Startup
Thank you for the suggestions, I have decided to implement this by the weekend.
Regards,
Manjunath.