diff options
-rw-r--r-- | include/rootfs.mk | 2 | ||||
-rw-r--r-- | package/system/procd/Makefile | 2 | ||||
-rw-r--r-- | package/system/procd/files/procd.sh | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/include/rootfs.mk b/include/rootfs.mk index 74785cbbd3..1844f849e2 100644 --- a/include/rootfs.mk +++ b/include/rootfs.mk @@ -60,6 +60,7 @@ define prepare_rootfs $(call file_copy,$(TOPDIR)/files/.,$(1)); \ fi @mkdir -p $(1)/etc/rc.d + @mkdir -p $(1)/var/lock @( \ cd $(1); \ for script in ./usr/lib/opkg/info/*.postinst; do \ @@ -84,6 +85,7 @@ define prepare_rootfs rm -f $(1)/usr/lib/opkg/lists/* rm -f $(1)/usr/lib/opkg/info/*.postinst* rm -f $(1)/usr/lib/opkg/info/*.prerm* + rm -f $(1)/var/lock/*.lock $(call clean_ipkg,$(1)) $(call mklibs,$(1)) endef diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile index 7b673e4246..b3b38ada8b 100644 --- a/package/system/procd/Makefile +++ b/package/system/procd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=procd -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index b4b6faa662..6f16b746ff 100644 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -33,7 +33,7 @@ # Send a signal to a service instance (or all instances) # -. $IPKG_INSTROOT/usr/share/libubox/jshn.sh +. "$IPKG_INSTROOT/usr/share/libubox/jshn.sh" PROCD_RELOAD_DELAY=1000 _PROCD_SERVICE= @@ -44,7 +44,7 @@ procd_lock() { flock -n 1000 &> /dev/null if [ "$?" != "0" ]; then - exec 1000>/var/lock/procd_${service_name}.lock + exec 1000>"$IPKG_INSTROOT/var/lock/procd_${service_name}.lock" flock 1000 if [ "$?" != "0" ]; then logger "warning: procd flock for $service_name failed" |