Luis Diaz
asked on
Linux haproxy: stop temporary haproxy service
Helllo experts,
I used haproxy for a linux load balancer.
The following command allows me to check the status of haproxy.
And the following allows me to restart the service.
I was wondering which command should I use to stop haproxy and make it unavailable for a certain time and then restart the service to make it available again.
Thank you again for your help.
I used haproxy for a linux load balancer.
The following command allows me to check the status of haproxy.
sudo service haproxy status
And the following allows me to restart the service.
sudo service haproxy restart
I was wondering which command should I use to stop haproxy and make it unavailable for a certain time and then restart the service to make it available again.
Thank you again for your help.
ASKER
it is "stop" indeed if you just need to stop it
you can disable it using "systemctl disable service" ( beware the name of the service is weird so list services first with "systemctl list"
or you can use "chkconfig haproxy off"
agreed, whoever decided to name these commands in such a way or give them inconsistent switches deserves painful treatment
you can disable it using "systemctl disable service" ( beware the name of the service is weird so list services first with "systemctl list"
or you can use "chkconfig haproxy off"
agreed, whoever decided to name these commands in such a way or give them inconsistent switches deserves painful treatment
regarding your above screenshot, you need to use
"sudo service --help"
the above is the help of haproxy and you want the help of the service command
"sudo service --help"
the above is the help of haproxy and you want the help of the service command
ASKER
Thank you for your comment.
I have the same information with the help command.
I have the same information with the help command.
please type in exactly what i posted and include what you type and receive in your screenshots or copy-paste.
there is no way you'd get the above screenshot ( help of haproxy ) with the command i gave which does not even contain the word haproxy
there is no way you'd get the above screenshot ( help of haproxy ) with the command i gave which does not even contain the word haproxy
also note that haproxy features both a command protocol and a GUI that will let you disable individual frontends or backends if it is enabled
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much for your help.
Your last proposal works for me.
Your last proposal works for me.
sudo service haproxy
you get a list of all options.
most likely it is 'stop'