diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-06-06 11:27:11 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-06-06 11:29:15 +0200 |
commit | 5d27e87de78bdc9967796aa4a1e4a149e0d85c52 (patch) | |
tree | efee0cdb9a497f021b2de9f09c62b3146db78959 /package | |
parent | 1867f108075a875c3334d827beff74bc6c24f2f6 (diff) | |
download | upstream-5d27e87de78bdc9967796aa4a1e4a149e0d85c52.tar.gz upstream-5d27e87de78bdc9967796aa4a1e4a149e0d85c52.tar.bz2 upstream-5d27e87de78bdc9967796aa4a1e4a149e0d85c52.zip |
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>
(cherry picked from commit f664d560df8e59f8d368273990462bba85a09668)
Diffstat (limited to 'package')
-rw-r--r-- | package/system/rpcd/Makefile | 2 | ||||
-rwxr-xr-x | package/system/rpcd/files/rpcd.init | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/package/system/rpcd/Makefile b/package/system/rpcd/Makefile index 14cbdaf9c6..04155e6f22 100644 --- a/package/system/rpcd/Makefile +++ b/package/system/rpcd/Makefile @@ -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 diff --git a/package/system/rpcd/files/rpcd.init b/package/system/rpcd/files/rpcd.init index 0a37ee19f9..4a31aa0d00 100755 --- a/package/system/rpcd/files/rpcd.init +++ b/package/system/rpcd/files/rpcd.init @@ -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 -} |