- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: to start a daemon on server boots 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
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
тАО01-07-2003 05:30 AM
тАО01-07-2003 05:30 AM
to start a daemon on server boots up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2003 05:32 AM
тАО01-07-2003 05:32 AM
Re: to start a daemon on server boots up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2003 05:35 AM
тАО01-07-2003 05:35 AM
Re: to start a daemon on server boots up
two ways:
1) startup-script in /sbin/init.d
check the template file in this directory, you can use it to write your own
2) entry in /etc/inittab
this is probably the way it works on the old machine
If you're not familiar with either startup-scripts or inittab let us know and cannot go on with the manpages let us know again.
Bye
Heinz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2003 05:37 AM
тАО01-07-2003 05:37 AM
Re: to start a daemon on server boots up
to start a daemon at boot put a script in /sbin/init.d.
And make a symbolyc link in /sbin/rci.d (i is your start level number).
To perform the script you have a model in /sbin/init.d named template.
Regards,
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2003 05:38 AM
тАО01-07-2003 05:38 AM
Re: to start a daemon on server boots up
copy template and make modification to start your application.
2. make link file for start up and shutdown in /etc/rcXX.d
3if file that create in number 1 need to check parameter you can add it in /etc/rc.config.d/
you can see example that already exist
/sbin/init.d/lp
/sbin/rc2.d/S720lp
/sbin/rc1.d/K280lp
/etc/rc.config.d/lp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2003 05:39 AM
тАО01-07-2003 05:39 AM
Re: to start a daemon on server boots up
You can copy /sbin/init.d/template to be your template for the startup script.
cp /bin/init.d/template /sbin/init.d/newscript
This script requires start or stop as $1 argument
To create a startup run level 3 to that script its.
cd /sbin/rc3.d
ln -s /sbin/init.d/newscript S999newscript
for stopping it run level 2
cd /sbin/rc2.d
ln -s /sbin/init.d/newscript K999newscript
An example always helps.
Good luck.
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
тАО01-07-2003 05:47 AM
тАО01-07-2003 05:47 AM
Re: to start a daemon on server boots up
also you can find it from /etc/rc.log,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2003 11:23 PM
тАО01-07-2003 11:23 PM
Re: to start a daemon on server boots up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 03:08 AM
тАО01-08-2003 03:08 AM
Re: to start a daemon on server boots up
You have to make the next steps:
1. First off al. you have to put a new file ( you can use another file on the same directory, copy an modify it ), on /sbin/init.d/< my daemon script file name >
On it, put the start and stop process to your daemon.
2. Then, on /etc/rcconfig.d/< my daemon script file name >, put the variable=1, the same that you use on /sbin/init.d/my daemon script file name
3. /sbin/rcx.d ( x= 2 to stop, 3 to start )
Create a links to your /sbin/init.d/
Kxxx
Sxxx
xxx should be a total of 1000, I mean: you can put 009 to stop and 991 to start.
I hope this help you.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2003 05:17 AM
тАО01-08-2003 05:17 AM