start some services automatically


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users start some services automatically
# 1  
Old 12-22-2010
start some services automatically

Hello All

i have a question related to some services,i want to start some services with server linux centos.

i make "chkconfig httpd on" and "chkconfig asterisk on",but when i verify with chkconfig --list i found

httpd 0: off 1: off 2: on 3: on 4: on 5: on 6: off

asterisk 0: off 1: off 2: on 3: on 4: on 5: on 6: off

the 0,1, and 6 are OFF just the 2,3,4,5 are ON ,

and when i reboot the server i found that the service httpd is off with command "service httpd status" and service asterisk status

please advice

thanks and regards
# 2  
Old 12-22-2010
Well, run level 0 httpd is off . . . .
# 3  
Old 12-22-2010
hi

if i understand i must to change the runlevl 0 of httpd from OFF to ON
in order to get the httpd launched automatically when the server reboot

Thanks and regards
# 4  
Old 12-22-2010
i don't think that runlevel 0 is the runlevel your servers operates in... and it is allready on in the higher runlevel...
# 5  
Old 12-22-2010
ok thank you for your support do you have any solution in order to start these services with server without do the service httpd start

kind regards
# 6  
Old 12-22-2010
When you run:

Code:
chkconfig httpd on

it should create a link in each rc?.d directory for each run-level where Apache is to be started.
Code:
# ll /etc/rc5.d/*http*
lrwxrwxrwx 1 root root 15 Dec 22 17:38 S85httpd -> ../init.d/httpd

Check that the link was created, and that /etc/init.d/httpd exists and is executable.

Try running the "S script" manually to ensure that it works.
Code:
/etc/rc5.d/S85httpd start

# 7  
Old 12-22-2010
ok thanks a lot for your help and support Smilie

best regards
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Start Services in Clustered Environment

Hello Experts, I have a requirement to start and stop weblogic services in a clustered environment. First i need to start weblogic server and once the server is in Running mode i need to do SSH to other server and there i need to start Node Manager and Managed server, After these two are in... (1 Reply)
Discussion started by: beginner786
1 Replies

2. Shell Programming and Scripting

Script to Start services based on dependent services on other AIX machine

Hi, I just started working on a script. After my research, i found a command which can help me: AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2. So my script has to... (4 Replies)
Discussion started by: draghun9
4 Replies

3. Linux

How to start pc automatically when power comes (Server)?

Can anyone tell me how to start pc automatically when power comes, here I just want to start server automatically, on boot, my server starts automatically because I have written some startup commands in rc.local file but if power fails, then how can I boot automatically (2 Replies)
Discussion started by: Akshay Hegde
2 Replies

4. SuSE

start services during the startup

I'm trying to add services to start services automatically during the system start up in suse linux. I followed these steps.. chkconfig servicename on and created symbolic link at /etc/rc.d/rc3.d/ folder with name S80servicename. here is the command I used ln -s /etc/init.d/servicename... (8 Replies)
Discussion started by: s_linux
8 Replies

5. Ubuntu

How can I automatically start a daemon at boot time.

Hi masters, I am still learning trades in kernel. I am trying to learn the basic of daemon programming. Can any one tell me how can I start a daemon automatically during boot up. I will be greatfull if anyone post some example code to the above task. Also what are... (3 Replies)
Discussion started by: iamjayanth
3 Replies

6. Solaris

Start Up Services?

Solaris uses a few different mechanisms to start up services and processes at boot time. Where do all the running processes come from? Can you find from where they were started? (8 Replies)
Discussion started by: gc40
8 Replies

7. Solaris

Database can't start automatically on solaris

Hi, I have installed oracle 9i on solaris 10 sucessfully. I have configured listener & tnsname.ora file sucessfuly. Even i can start database manully by starting listener first and from sqlplus promt data base sucessfully. Now i want to start the database automatically after system reboots. I... (2 Replies)
Discussion started by: Sachin Vaidya
2 Replies

8. Solaris

How to start Oracle database automatically

How to start Oracle database automatically when after SunSolaris is being re-booted? TIA, Greg (3 Replies)
Discussion started by: greg0320
3 Replies

9. UNIX for Dummies Questions & Answers

getting postfix tyo start automatically

Postfix has an initscript just like sendmail did so while logged in as root, simply type: ntsysv and select postfix. The message above is from the Redhat postifx FAQ. I tried running ntsysv and postfix is not listed as a selection. I can start postfix manually without any problems, but I need... (2 Replies)
Discussion started by: kmgrady01
2 Replies
Login or Register to Ask a Question