Cisco Headend System Release 2.7 Mode D'Emploi

Page de 282
 
 
 
Update the Database Tables 
 
4031374 Rev B 
155 
 
 
Stopping the cron Jobs on the DNCS 
Follow these instructions to stop cron jobs on the DNCS. 
1  If necessary, open an xterm window on the DNCS. 
2  Complete the following steps to log on to the xterm window as root user. 
a  Type su - and press Enter. The password prompt appears. 
b  Type the root password and press Enter
3  Type pgrep  -fl  cron and then 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. 
4  Use the cron PID from step 3, and type ptree  <PID> and then 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, type svcadm  -v  disable  -st  cron and then press Enter
 
If no (results from step 4 show multiple cron processes), type kill  -9  <PIDs> 
and then press Enter
Important:  List the PIDs in reverse order. 
Example:  kill  -9  14652  14651  209 
 
If the results from step 4 did not show /usr/sbin/cron, skip the rest of this 
procedure. The cron jobs are already stopped.