fixing stale pid file bug
This commit is contained in:
		
							parent
							
								
									473833a58f
								
							
						
					
					
						commit
						0febad432a
					
				| @ -405,9 +405,8 @@ def main(): | |||||||
|         else: |         else: | ||||||
|             # It's a stale PID file. |             # It's a stale PID file. | ||||||
|             os.remove(self_pidfile) |             os.remove(self_pidfile) | ||||||
|     else: |     with open(self_pidfile, 'w') as f: | ||||||
|         with open(self_pidfile, 'w') as f: |         f.write(str(os.getpid()) + '\n') | ||||||
|             f.write(str(os.getpid()) + '\n') |  | ||||||
|     _chkfile = '/etc/ssh/.aif-generated' |     _chkfile = '/etc/ssh/.aif-generated' | ||||||
|     if not os.path.isfile(_chkfile): |     if not os.path.isfile(_chkfile): | ||||||
|         # Warning: The moduli stuff can take a LONG time to run. Hours. |         # Warning: The moduli stuff can take a LONG time to run. Hours. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 brent s
						brent s