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
Well, run level 0 httpd is off . . . .
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
i don't think that runlevel 0 is the runlevel your servers operates in... and it is allready on in the higher runlevel...
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
Scott
8
When you run:
chkconfig httpd on
it should create a link in each rc?.d directory for each run-level where Apache is to be started.
# 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.
/etc/rc5.d/S85httpd start
ok thanks a lot for your help and support
best regards