File tree Expand file tree Collapse file tree
systemvm/patches/debian/config/root Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,11 +156,11 @@ def checkProcessRunningStatus(process_name, pidFile):
156156 #if not matched set pidFileMatched=False
157157 printd ("Checking pid file" )
158158 if isPidMatchPidFile (pidFile , pids ) == StatusCodes .SUCCESS :
159- return True ,pids ;
159+ return True ,pids
160160
161161 printd ("pid of exit status %s" % exitStatus )
162162
163- return False ,pids ;
163+ return False ,pids
164164
165165def restartService (service_name ):
166166
@@ -224,7 +224,7 @@ def checkProcessStatus( process ):
224224 if service_name == 'apache2' :
225225 # Killing apache2 process with this the main service will not start
226226 for pid in pids :
227- cmd = 'kill -9 ' + pid ;
227+ cmd = 'kill -9 ' + pid
228228 printd (cmd )
229229 Popen (cmd , shell = True , stdout = PIPE , stderr = STDOUT )
230230
@@ -331,9 +331,9 @@ def loadPsFromUnMonitFile():
331331 for i in plist :
332332 dict_unmonit [i .split (':' )[0 ]] = i .split (':' )[1 ]
333333
334- fd .close ();
334+ fd .close ()
335335
336- return dict_unmonit ;
336+ return dict_unmonit
337337
338338
339339def writePsListToUnmonitFile (umonit_update ):
@@ -348,7 +348,7 @@ def writePsListToUnmonitFile(umonit_update):
348348 printd ("Failed to open file %s " % Config .UNMONIT_PS_FILE )
349349 return StatusCodes .FAILED
350350
351- fd .write (line );
351+ fd .write (line )
352352 fd .close ()
353353
354354
You can’t perform that action at this time.
0 commit comments