Unix/Linux Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

start some services automatically

UNIX for Advanced & Expert Users


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-22-2010
bernard12 bernard12 is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 22 December 2010, 1:10 PM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old Unix and Linux 12-22-2010
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 Posts
Well, run level 0 httpd is off . . . .
Sponsored Links
    #3  
Old Unix and Linux 12-22-2010
bernard12 bernard12 is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 22 December 2010, 1:10 PM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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 Unix and Linux 12-22-2010
DukeNuke2's Unix or Linux Image
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
 
Join Date: Jul 2006
Last Activity: 18 September 2017, 2:29 PM EDT
Location: Berlin, Germany
Posts: 5,698
Thanks: 73
Thanked 302 Times in 288 Posts
i don't think that runlevel 0 is the runlevel your servers operates in... and it is allready on in the higher runlevel...
Sponsored Links
    #5  
Old Unix and Linux 12-22-2010
bernard12 bernard12 is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 22 December 2010, 1:10 PM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #6  
Old Unix and Linux 12-22-2010
Scott's Unix or Linux Image
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 18 September 2017, 4:38 AM EDT
Location: Zürich
Posts: 8,627
Thanks: 347
Thanked 1,111 Times in 959 Posts
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

Sponsored Links
    #7  
Old Unix and Linux 12-22-2010
bernard12 bernard12 is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 22 December 2010, 1:10 PM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
ok thanks a lot for your help and support Linux

best regards
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can I automatically start a daemon at boot time. iamjayanth Ubuntu 3 03-10-2009 01:10 PM
Database can't start automatically on solaris Sachin Vaidya Solaris 2 02-27-2008 10:12 PM
How to start Oracle database automatically greg0320 Solaris 3 03-30-2005 04:46 PM
getting postfix tyo start automatically kmgrady01 UNIX for Dummies Questions & Answers 2 05-21-2002 02:18 AM



All times are GMT -4. The time now is 07:11 AM.