mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-11 15:33:03 +00:00
rpcd: fix init script reload action
Drop the legacy start() and stop() procedures and define a proper reload signal action instead. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
7c50182e0c
commit
f664d560df
@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=rpcd
|
PKG_NAME:=rpcd
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git
|
||||||
|
@ -15,10 +15,7 @@ start_service() {
|
|||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
reload_service() {
|
||||||
service_stop /sbin/rpcd
|
procd_send_signal rpcd
|
||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
|
||||||
service_reload /sbin/rpcd
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user