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-24-2003 02:39 PM
04-24-2003 02:39 PM
inittab
I have a script that starts a user application on bootup. The script is in /etc/inittab as a LAST line. If a run state for the script is not specified, is there a chance that the script may start at any state or is evrything in inittab executed sequentially and before it gets to the last line?
Thanks,
Vlad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 06:01 PM
04-24-2003 06:01 PM
Re: inittab
If you don't specify a run state for an entry in inittab, init will assume that the entry is valid for all run levels. I'm pretty sure that init will execute the lines in inittab in order that they are listed.
I'm just curious, but is there any particular reason to put your script in inittab instead of in /sbin/init.d with a symlink in the appropriate run level directory /sbin/rc#.d ?
I can understand putting it in inittab if you need something respawned in case it dies, but just for getting something to run at startup the /sbin/rc#.d machinery works great and is a standard practice in HP-UX and other flavors of Unix.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 08:21 PM
04-24-2003 08:21 PM
Re: inittab
john is correct, normal pratices we will add it /sbin/init.d/rc#.d
directories .
there is problem is putting the program in /etc/inittab if u specified respawan the process will be getting respwaned every time, it might affect ur performance also.
check it whether is it required to be put in inittab otherwise u can put /sbin/init.d/ and have symlink to runlevels.
u template file in /sbin/init.d/template which can copy and customize it.
one thing add an entry in /etc/rc.config.d/
for the file script u r starting.
regards
radhakrishnan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 09:03 PM
04-24-2003 09:03 PM
Re: inittab
it's standard followed in all Unix to put the script under /sbin/rc#.d and make softlink to /sbin/init.d , so the script start at the particular run level(#).
Scripts in /etc/inittab are for init process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2003 11:22 PM
04-24-2003 11:22 PM
Re: inittab
I also have apps running from there with no problem (all lines always processed)
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 06:35 AM
04-25-2003 06:35 AM
Re: inittab
Thanks,
Vlad