Top Content Up
Prec

4.6 Starting/Stopping the virtual server

Next

Virtual server with ONBOOT=yes will be started and stopped like any other services of the main server. But you can stop and start a virtual server at any time. Starting a server means that all configured service will be started. Stopping it means that all configured services will be stopped and then all remaining process will be killed.

Oddly, starting a virtual server does not mean much. There is no overhead. No monitoring process or proxy or emulator. Starting a virtual server with 4 services is the same as running those 4 services in the main server, at least performance wise (the service inside a virtual server are locked inside the security context).

The following commands may be used to control a virtual server:

  • /usr/sbin/vserver server start
  • /usr/sbin/vserver server stop
  • /usr/sbin/vserver server restart
  • /usr/sbin/vserver server running
  • /usr/sbin/vserver server enter
  • /usr/sbin/vserver server exec some commands ...
  • /usr/sbin/vserver server suexec user some commands ...
  • /usr/sbin/vserver server service service-name start/stop/restart/status
  • /usr/sbin/vserver server status

The running command prints if there are any processes running in the virtual server context.

Please note

The processes running in a virtual server are invisible from the main server. The opposite is true. This is very important. Managing the main server must not cause problems to the various virtual servers. For example, doing killall httpd will kill all the httpd processes in the current context ( the main server or a virtual one).

Top Content Up
Prec

Next
Table of content
One big HTML document