Changing Services Mode
xinetd
is a service used to start and stop a variety of data communication services.
xinetd
starts on the Parallels server startup and waits for a connection request from a remote client that wants to connect to the server. There can be a number of remote clients in the network, and each of them can use different network protocols to establish connection to the server. In order not to run all network services responsible for a specific protocol, which will negatively influence the system performance, the system starts only the
xinetd
service. This service controls all other network services and, at the connection time, it starts the corresponding service to process this connection. In such a way,
xinetd
saves system resources allowing you to run only those network services in the system that are really needed at the moment.
The
vzsetxinetd
utility allows you to switch Container services between the standalone and
xinetd
mode. The services that can be either standalone or dependent on
xinetd
are
sendmail
,
sshd
,
proftpd
, and
courier-imap
. Whereas they are
xinetd
-dependent by default, in order to consume less resources, you may want to make them standalone due to the following reasons:
-
The CPanel application does not recognize
sshd
if it is dependent on
xinetd
;
-
sendmail
does not process some rules correctly if it is dependent on
xinetd
;
-
A number of control panel applications and some others are not able to manage
xinetd
-based services at all.
The
courier-imapd
,
courier-imapds
,
courier-pop3d
, and
courier-pop3ds
services are provided by the
courier-imap
service, thus
vzsetxinetd
can manage these services via the
courier-imap
service.
Let us assume that you wish to check the mode of the
sendmail
service and set it to standalone if it is in the
xinetd
mode. First, you should check the current status of the
sendmail
service. To this effect, type the following command in the command line:
# vzsetxinetd -s 222 sendmail
where
222
is the Container ID,
sendmail
denotes the name of the corresponding service, and the
-s
option gets the status of the
sendmail
service of the Container with ID 222. The output will tell you if this service has the standalone or
xinetd
mode:
sendmail is xinetd service
In our case it is in the
xinetd
mode. Now you can change the mode of the
sendmail
service to standalone. To make it standalone, type the following line:
# vzsetxinetd 222 sendmail off
sendmail is standalone service
where
off
specifies that the
sendmail
service should be set to the standalone mode. The output confirms that the
sendmail
service is now standalone.
For more information on the
vzsetxinetd
utility, consult the corresponding man pages or refer to the
Parallels Command Line Reference Guide
.
Notes:
1. You cannot use the
vzsetxinetd
utility to change the mode of the
xinetd
-dependent services in Containers where the Debian 3.0 OS template is installed.
2. In the current version of Parallels Server Bare Metal, you cannot use the
vzsetxinetd
utility for managing services in virtual machines.
|