- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need help in adding entries in inittab
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
тАО11-01-2010 12:04 AM
тАО11-01-2010 12:04 AM
Need help in adding entries in inittab
I am new to UNIX, i wanted automate a process to get started whenever system/server gets rebooted. below is command which i wanted to include in the initab file.
/sapmnt/tools/ccms/
Please let me know who to include this entry and let me if you need more information on it.
Thanks,
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2010 12:57 AM
тАО11-01-2010 12:57 AM
Re: Need help in adding entries in inittab
>> i wanted automate a process to get started whenever system/server gets rebooted
Bascially you need to prepare startup/shutdown scripts and should linked in to the runlevel directories with "S" for startup and "K" for shutdown.
Run level directories
/sbin/rc1.d/
/sbin/rc2.d
/sbin/rc3.d/
For more information:-
man rc
man init
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2010 02:44 AM
тАО11-01-2010 02:44 AM
Re: Need help in adding entries in inittab
Thanks for your response.
my request here is, i have an agent called CCMS, which needs to started manually whenever we restart the system. so i need to automate it by adding the the above mentioned start command in inittab file.
so, i need to know whether is any syntax or convention in adding the entries in the inittab file.
Thanks,
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2010 03:30 AM
тАО11-01-2010 03:30 AM
Re: Need help in adding entries in inittab
It's better to put it in the rc(1m) files instead of inittab.
To do the former, you need to accept a start and stop parm.
Some previous threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1070585
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1177483
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1128229
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1415771
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=956990
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1037789
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1367267
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2010 04:48 AM
тАО11-01-2010 04:48 AM
Re: Need help in adding entries in inittab
Welcome to HP forums. YOu are at right place.
As everyone suggested, go for an rc script.
Playing with inttab is little dangerous.
How to create the script for your application, its all there in above links.
Its very easy.
By the way, please go throug the link below
http://forums11.itrc.hp.com/service/forums/helptips.do?#28
Enjoy foruming ...
regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2010 10:58 PM
тАО11-01-2010 10:58 PM
Re: Need help in adding entries in inittab
You haven't specified which UNIX you are using. Is it HP-UX or AIX?
Most production environment, default runlevel of HP-UX is 3.
You first create the command into a file and make it as executable. Then create a link file in /sbin/rc3.d/ with the following format
S<2or3 digit sequence number>
S stands for start.
If you are using AIX server, runlevel will be 2.
In the same way, you create an executable file and create a link file in /etc/rc.d/rc2.d/ pointing to your executable one.
In AIX, no sequence number required. Just mention S
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2010 12:26 PM
тАО11-02-2010 12:26 PM
Re: Need help in adding entries in inittab
I am not sure that you need to create that startup script. If you are on a clustered environment, the startup method should be incorporated inside of a package.
Please post the following output:
at first, let's see what kind of system do we have:
# uname -a
if we are on HP-UX, maybe ServiceGuard is there (cluster software), in this case we need to edit/create a package file:
# cmviewcl -v
# ll /etc/cmcluster
Regards,
Viktor
Unix operates with beer.