Cisco Headend System Release 2.7 Guia Da Instalação

Página de 60
 
Chapter 1    Preparing to Install the Software 
 
 
 
18 
4023373 Rev B 
10  Go to Stopping the cron Jobs on the DNCS (on page 18).  
 
Stopping the cron Jobs on the DNCS 
Note: A cron job is a program that runs automatically without specific user 
intervention. 
1  Are you logged into the DNCS as root user? 
 
If yes, go to step 5. 
 
If no, go to step 2. 
2  Open an xterm window on the DNCS. 
3  At the prompt, type su  - and press Enter. A password prompt appears. 
4  Type the root user password and press Enter. A prompt for the root user 
appears. 
5  From the root user prompt, type pgrep –fl cron and press Enter. The DNCS 
displays the cron process ID (PID). 
Example: The following are only examples of sample output. Your output is 
likely to be different. 
 
If the cron process is running without any child processes, you should see 
something similar to this example: 
pgrep – fl cron 
209 /usr/sbin/cron 
 
If the cron process has spawned a child process, you should see something 
similar to this example: 
pgrep – fl cron 
209 /usr/sbin/cron 
14651  sh  -c  /export/home/dncs/test/tst  2>&1 
14652  sh  -c  /export/home/dncs/tst2  2>&1 
Note: The cron process may have spawned multiple child processes. 
6  Use the cron PID from step 5 and type ptree <PID> and press Enter
7  Does the resulting list only include /usr/sbin/cron
 
If yes,  type svcadm  -v  disable  -s  cron and then press Enter
 
If no, (the results from step 6 show multiple cron processes), type kill -9 
<PIDS>
 and press Enter
Important: List the PIDs in reverse order. 
Example: kill -9 14652  14651 209 
Note: If the results from step 6 did not show /usr/sbin/cron, skip the rest of 
this section and go to Ensuring No Active Database Sessions on the DNCS 
(on page 19).