[PDF] Parallels Server 5 Bare Metal
[PDF] Parallels Server 5 Bare Metal
[PDF] Parallels Server 5 Bare Metal
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Managing Services and Processes<br />
For more information on the vzsetxinetd utility, consult the corresponding man pages or refer to<br />
the <strong>Parallels</strong> Command Line Reference Guide.<br />
Notes:<br />
1. You cannot use the vzsetxinetd utility to change the mode of the xinetd-dependent services in<br />
Containers where the Debian 3.0 OS template is installed.<br />
2. In the current version of <strong>Parallels</strong> <strong>Server</strong> <strong>Bare</strong> <strong>Metal</strong>, you cannot use the vzsetxinetd utility for<br />
managing services in virtual machines.<br />
Determining Container Identifiers by Process IDs<br />
Each process is identified by a unique PID (process identifier), which is the entry of that process in<br />
the kernel's process table. For example, when you start Apache, it is assigned a process ID. This<br />
PID is then used to monitor and control this program. The PID is always a positive integer. In<br />
<strong>Parallels</strong> <strong>Server</strong> <strong>Bare</strong> <strong>Metal</strong>, you can use the vzpid (retrieve process ID) utility to print the<br />
Container ID the process with the given id belongs to. Multiple process IDs can be specified as<br />
arguments. In this case the utility will print the Container number for each of the processes.<br />
The typical output of the vzpid utility is shown below:<br />
# vzpid 12<br />
Pid VEID Name<br />
12 101 init<br />
In our example the process with the identifier 12 has the name 'init' and is running in the Container<br />
with ID 101.<br />
Note: You can also display the Container ID where the corresponding process is running by using the<br />
vzps utility.<br />
Starting, Stopping, and Restarting Services<br />
You can manage (i.e. start, stop, and restart) services by using the command line. For example,<br />
you wish to start the httpd service. To do this, execute the following command:<br />
[root@ct222 /]# service httpd start<br />
where service is the standard Linux command, httpd denotes the name of the corresponding<br />
service, and start is the command that will launch this service. In order to check that the httpd<br />
service was successfully launched, you can either type the following Linux command:<br />
[root@ct222 /]# service httpd status<br />
or use the vzps utility when working on your server or the ps utility when working inside your<br />
Containers and passing them the x argument. The output will tell you if the httpd service is<br />
running in your system or not.<br />
163