mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 22:44:27 -05:00 
			
		
		
		
	rpcd: implement service_running() in init.d script
It allows checking if service is running. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
		
							parent
							
								
									cbae306815
								
							
						
					
					
						commit
						285c83a004
					
				@ -8,7 +8,7 @@
 | 
				
			|||||||
include $(TOPDIR)/rules.mk
 | 
					include $(TOPDIR)/rules.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_NAME:=rpcd
 | 
					PKG_NAME:=rpcd
 | 
				
			||||||
PKG_RELEASE:=2
 | 
					PKG_RELEASE:=3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_SOURCE_PROTO:=git
 | 
					PKG_SOURCE_PROTO:=git
 | 
				
			||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git
 | 
					PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git
 | 
				
			||||||
 | 
				
			|||||||
@ -19,3 +19,6 @@ reload_service() {
 | 
				
			|||||||
	procd_send_signal rpcd
 | 
						procd_send_signal rpcd
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					service_running() {
 | 
				
			||||||
 | 
						procd_running rpcd
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user