inittab in Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris inittab in Solaris 10
# 1  
Old 03-02-2009
Power inittab in Solaris 10

Hi,

In Solaris 9 and below release we are using the rc script in inittab.I don't have much idea abt inittab in Solaris.

In Solris 9 and below:
We use rc3 script to start up the server. And we run database script before the rc3.

os:23:respawn:/etc/init.d/database start >/dev/null 2>&1
s3:3:wait:/sbin/rc3 >/dev/msglog 2<>/dev/msglog </dev/console

Now I install my product in Solaris 10 and the
Initab entry looks like

ap::sysinit:/sbin/autopush -f /etc/iu.ap
sp::sysinit:/sbin/soconfig -f /etc/sock2path
smf::sysinit:/lib/svc/bin/svc.startd >/dev/msglog 2<>/dev/msglog </dev/console
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
pt:s1234:powerfail:/usr/lib/svc/method/installupdates lock

When I check svcs -a

The database has not been started before the server boot.
So the server reboot has been failed

Now I need to know how I can start the database, when I reboot the server.

Please help me where I need to add that path. How can I add the path to SVCS(SMF). L

Regards,
Kalai
# 2  
Old 03-02-2009
# 3  
Old 03-02-2009
Thanks a lot Smilie
I need one more information.
Whre i need to mention for respawn.
Also i need to add this sevrice between existing service.
# 4  
Old 03-09-2009
Thanks a lot

I just followed the steps given.

when i check svcs newservice it provieds the following output.

STATE STIME FMRI
offline 20:18:18 svc:/site/newservice:default

i tried to enable but it does not get enabled.

# svcadm -v enable site/newservice
svc:/site/newservice:default enabled.

# svcs newservice
STATE STIME FMRI
offline 20:18:18 svc:/site/newservice:default

How can i enable the service.It should get work while rebooting the server.
# 5  
Old 03-09-2009
It must be missing a dependency. Do:
svcs -l newservice
# 6  
Old 03-09-2009
the dependency is missing,
So what i need to add to dependency,what path need to be mentioned.

telepath@design5: svcs -l newservice.

svcs: Pattern 'newservice.' doesn't match any instances
# 7  
Old 03-09-2009
svcs -l svc:/site/newservice:default
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script calling by inittab

Hi to all , i wrote a small script and i add it to inittab to start the script during Startup. The script works fine , if i call it from the prompt but if it is call from inittab it is runnng too but it does not recognize system variable like USER , LOGNAME. Since i running out of ideas i... (12 Replies)
Discussion started by: Nadielosabra
12 Replies

2. Linux

How to add a entry in inittab?

Hi All, I am booting by Linux box with the run level 3 and it gets booted successfully. I want to execute a script once the system is up and running in the run level 3. I was trying to add a entry to /etc/inittab to execute my script once the system is up. I have added the below... (5 Replies)
Discussion started by: kalpeer
5 Replies

3. UNIX for Dummies Questions & Answers

Inittab configuration

I am installing BusyBox on a device that does not have keyboard or serial connection, so I log into the system with SSH. I am in doubt about what to put in the inittab file. This is the content of the file: ::sysinit:/etc/init.d/rcS ::respawn:/bin/login ::shutdown:/sbin/swapoff -a... (1 Reply)
Discussion started by: richard78
1 Replies

4. UNIX for Dummies Questions & Answers

What breaks inittab

Today there was a situation where processes running from inittab was broken. Can someone help me understand, how to find out, who might have stopped those processes? Or how does it get broken? G (2 Replies)
Discussion started by: ggayathri
2 Replies

5. UNIX for Advanced & Expert Users

Does inittab needs system restart?

Hi currently my linux instance is running in runlevel 3 ( someone has set the default to 3) i have to change it to runlevel 5 . my question 1) does the editing of /etc/inittab needs system restart to enter runlevel 5. 2) how can we avoid system restart because if some users are... (3 Replies)
Discussion started by: rakeshkumar
3 Replies

6. Solaris

inittab entry does not works

Hi, I have a solaris 10 server,which has a process running that communicates with other system.I have made following entry in the inittab file. PM15:s12345:respawn:/ncm/bin/communicator PM15 : Unique process ID s12345 : run levels respawn : if anytime the process... (2 Replies)
Discussion started by: asalman.qazi
2 Replies

7. Shell Programming and Scripting

doubt in /etc/inittab script

Hi.. When i was just looking throught /etc/inittab file.. i had stuck with some problems that i dont known in shell scripts Here how the lablel like si ca lo l1 etc works.. do scripts proivide any label features.. please help... thanks in advance esham (3 Replies)
Discussion started by: esham
3 Replies

8. AIX

init not starting processes from inittab

Hello, I'm having a problem starting the cron daemon automatically from inittab, let me provide the details below: We are having five equally installed machines. One of them was upgraded in the past, one we upgraded recently, both from 5300-05-06 to 5300-07-01-0748. On the upgraded... (6 Replies)
Discussion started by: hybr1d
6 Replies

9. UNIX for Dummies Questions & Answers

inittab solaris

Hi! Is it possible to add more ttys in Solaris, like with inittab in Linux? I want to switch between the ttys with Alt F1+F2+F3 .... like Linux does. How can i do this? (1 Reply)
Discussion started by: donald1111
1 Replies

10. UNIX for Dummies Questions & Answers

I got a corrupt /etc/inittab file....what next?

Hi guys, For some reason a client has given us a Sun Netra T1 with Solaris 8 to administer for them. That's always good business. However, the other day we rebooted the machine and to our amazement, after doing the preliminary hardware tests, we got an error messgae saying that /etc/inittab was... (3 Replies)
Discussion started by: Ivo
3 Replies
Login or Register to Ask a Question