Cisco Headend System Release 2.7 Installation Guide

Page of 52
 
 
Stop System Components 
4026031 Rev B 
17 
 
3  Type 
pgrep  -fl  cron
 and then press 
Enter
. The DNCS displays the cron process 
ID (PID). 
Examples
:
 The following examples are 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. 
4  Use the cron PID from step 3 and type 
ptree  <PID>
 and press 
Enter
. The DNCS 
displays the process tree of all cron processes. 
5  Did the results from step 4 only include /usr/sbin/cron? 
 
If 
yes
, choose one of the following options: 
– 
On a Solaris 8 system, type 
/etc/rc2.d/S75cron  stop
 and then press 
Enter
– 
On a Solaris 10 system, type 
svcadm  -v  disable  -s  cron
 and press 
Ente
r
 
If 
no
, (results from step 4 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 4 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 20). 
6  To confirm that the cron jobs have stopped, type 
pgrep –fl cron
 and press 
Enter
.  
Note:
 The “l” in “fl” is a lowercase "L". 
Result:
 
The command prompt should be the only item displayed; no processes 
should be displayed.
 
7  If the results from step 7 show that the cron process is still running, repeat steps 
4 through 7 
Note:
 Call Cisco Services for assistance, if necessary. 
8  Type 
exit
 and press 
Enter
 to close the remote session and return to the DNCS