[Resolved] litespeed not starting when server boots

Status
Not open for further replies.

c0ldshadow

Well-Known Member
#1
Hi, I have a centos 6.6 server. Litespeed works fine but doesn't appear to be configured to load when the server starts.

2 questions:

1) how can I verify if it is configured to start at boot but having issues?

2) what command / modification do I need to do to load litespeed when the server starts?
 

c0ldshadow

Well-Known Member
#3
Hi,when i ran chkconfig --list | grep lsws the output is blank

when I run the 2nd command, output is:

Code:
 error reading information on service lsws: No such file or directory
thanks for the help
-c0ld
 
Last edited by a moderator:

NiteWave

Administrator
#4
that means lsws is not installed completely.
please re-install lsws
#/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.21
it's safe and won't override current configurations.

after re-install, run
#chkconfig --list | grep lsws
again, the output should be like
Code:
lsws            0:off   1:off   2:on    3:on    4:off   5:on    6:off
 

c0ldshadow

Well-Known Member
#5
Hi NiteWave,

After run the reinstall

chkconfig --list | grep lsws still shows a blank output


chkconfig lsws on shows
Code:
error reading information on service lsws: No such file or directory

The server with the above command is running centos 6.6


I have a centos 7.0 server that does boot litespeed at startup



on that server
Code:
chkconfig --list | grep lsws

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.


chkconfig lsws on
error reading information on service lsws: No such file or directory



So its weird that litespeed boots on centos 7 box even though commands show errors. centos 6.6 box commands also don't work either, but litespeed does startup



Please advise how to proceed

Are there specific files / scripts that should be in place for litespeed to load? maybe I should look for those files or create manually

thanks a ton
 
Last edited by a moderator:

c0ldshadow

Well-Known Member
#7
/etc/init.d/lsws does not exist on either my centos 6.6 machine (the one I opened this ticket about) or the centos 7.0 machine.

however, litespeed loads on boot on the 7.0 machine, but not the 6.6 machine, even though the 7.0 doesn't have that file

thx for the continued support
 

NiteWave

Administrator
#9
it's not easy to answer the question since usually it works well.
if you can provide ssh access to the server, I'd like to log in to take a look, see if any special on the server.
you can use "Start a Conversation" to give the login detail which is private to you and me only.
 
#10
the issue is manually fixed by copying /etc/init.d/lsws from other lsws server, then

Code:
#chkconfig lsws on
# chkconfig --list | grep lsws
lsws 0: off 1: off 2: on 3: on 4: on 5: on 6: off
# service lsws status
litespeed is running with PID 1614.
 
Last edited by a moderator:
Status
Not open for further replies.
Top