procd: introduce procd_lock for init script protection
authorRoman Yeryomin <roman@advem.lv>
Thu, 14 Dec 2017 21:54:26 +0000 (23:54 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 2 Jan 2018 06:52:27 +0000 (07:52 +0100)
commite410f785a4d5676eb71715e8c5c4b3445c6478e3
tree804b9ae212e5b7de57a0945bbc355a6cb55a518a
parent2277cd1249a6952228f36b768beea117c91123a0
procd: introduce procd_lock for init script protection

Use flock to protect init script from concurrent execution
(of the same script).
Important for services which generate native config files.

Signed-off-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: Andrejs Hanins <ahanins@gmail.com>
package/system/procd/files/procd.sh