- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: start service when bootup
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
04-29-2004 12:13 AM
04-29-2004 12:13 AM
MFG1:3:once:/home/EE/startdb
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 12:31 AM
04-29-2004 12:31 AM
Solution1) add a row to inittab specifying:
mscl:23456:once:/path/to/script
where "
mscl - label
23456 - list of runlevels where tu run file
once - run this file once
and then reload inittab issuing
#init q
2) if the script is a kind of service you may prefer to copy the script in /etc/init.d adding the following lines at the beginning of the file:
---begin quote---
#
# chkconfig: 235 99 02
#
---end quote---
The chkconfig manual says:
This says that the random script should be started in levels 2, 3, 4,
and 5, that its start priority should be 99, and that its stop priority
should be 02.
Then tell to the system to start this file at boot:
#chkconfig FILENAME on
Then the system will issue a
#/etc/init.d/FILENAME start
after processing all files in /etc/rc?.d/ with start priority less than 99
and a
#/etc/init.d/FILENAME stop
after processing all files in /etc/rc?.d/ with stop priority less than 02
for further info
#man chkconfig
#man inittab
Peace, R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 12:33 AM
04-29-2004 12:33 AM
Re: start service when bootup
I don't have idea about the linux but maybe what you are doing is wrong.
In hp the configuration file is kept in /etc/rc.config.d/filename.
The execution scripts are in /sbin/init.d/filename and this (execution script) is linked to /sbin/rc3.d/S340filename
where S=start 340 = sequence
Similarly
The same script will be linked to
/sbin/rc2.d/K560filename
This will kill the service while restarting.
The above concept is tru for any unix but the directories are different.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 12:38 AM
04-29-2004 12:38 AM
Re: start service when bootup
Try to
mf:3:once:/home/EE/startdb
and end file with a nice
Peace, R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 01:03 AM
04-29-2004 01:03 AM
Re: start service when bootup
Just a quick thought, but I notice that your script is in /home, normally this would be a filesystem all of its' own, if this is the case, you will want to make sure that this filesystem is mounted before it is run in the inittab. This is especially true if it's an NFS mount, like our homes as this isn't mounted until networking is started!
Just a thought!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 02:11 AM
04-29-2004 02:11 AM
Re: start service when bootup
hth,
Claudio