filesystem: added sync-digest-clean script.
This commit is contained in:
		@@ -7,7 +7,7 @@ start()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
stop()
 | 
					stop()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    pids="$(echo $(ps | grep /sbin/sync-digest | grep -v grep | cut -f1 -dr))"
 | 
					    pids="$(echo $(ps | grep '/sbin/sync-digest ' | grep -v grep | cut -f1 -dr))"
 | 
				
			||||||
    if [ -n "$pids" ]; then
 | 
					    if [ -n "$pids" ]; then
 | 
				
			||||||
        kill $pids
 | 
					        kill $pids
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								rules/filesystem/fs/sbin/sync-digest-clean
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								rules/filesystem/fs/sbin/sync-digest-clean
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					#! /bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/sbin/services sync-digest stop
 | 
				
			||||||
 | 
					sleep 10
 | 
				
			||||||
 | 
					rm -rf /opt/lsts/sync
 | 
				
			||||||
 | 
					/sbin/services sync-digest start
 | 
				
			||||||
		Reference in New Issue
	
	Block a user