21 lines
		
	
	
		
			381 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			381 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env watchman
 | |
| 
 | |
| service_type='oneshot'
 | |
| service_command='ip'
 | |
| service_args='link set lo up'
 | |
| 
 | |
| start() {
 | |
| 	watchman.msg "Activating the loopback interface (lo)..."
 | |
| 	watchman.start
 | |
| }
 | |
| 
 | |
| stop() {
 | |
| 	watchman.status || {
 | |
| 		watchman.err "$service_name is already disabled"
 | |
| 		return 1
 | |
| 	}
 | |
| 	watchman.msg "Deactivating the loopback interface (lo)..."
 | |
| 	ip link set lo down
 | |
| 	watchman.stop
 | |
| }
 |