rpcd: fix init script reload action
authorJo-Philipp Wich <jo@mein.io>
Thu, 6 Jun 2019 09:27:11 +0000 (11:27 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 6 Jun 2019 09:27:11 +0000 (11:27 +0200)
Drop the legacy start() and stop() procedures and define a proper
reload signal action instead.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/system/rpcd/Makefile
package/system/rpcd/files/rpcd.init

index 5c9b98f984934deac7e07d36af80fa8e5f1cabbb..00598917fd5bbfb705ebab886518f1fa29012dd1 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rpcd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git
index 0a37ee19f925b12d0fb805a079aee974a9ad81be..4a31aa0d00a2f0834a28ab9672b4191e08ef7e82 100755 (executable)
@@ -15,10 +15,7 @@ start_service() {
        procd_close_instance
 }
 
-stop() {
-       service_stop /sbin/rpcd
+reload_service() {
+       procd_send_signal rpcd
 }
 
-reload() {
-       service_reload /sbin/rpcd
-}