projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base-files: protect stop and reload actions with procd_lock
[openwrt/openwrt.git]
/
package
/
base-files
/
files
/
etc
/
rc.common
diff --git
a/package/base-files/files/etc/rc.common
b/package/base-files/files/etc/rc.common
index a08c1f8f486eca7e7f1a29c90e4e9cfcf36ad633..3e237170b4cb0809172b36c2b4fff6148930edda 100755
(executable)
--- a/
package/base-files/files/etc/rc.common
+++ b/
package/base-files/files/etc/rc.common
@@
-127,12
+127,14
@@
${INIT_TRACE:+set -x}
}
stop() {
+ procd_lock
stop_service "$@"
procd_kill "$(basename ${basescript:-$initscript})" "$1"
}
reload() {
if eval "type reload_service" 2>/dev/null >/dev/null; then
+ procd_lock
reload_service "$@"
else
start