diff options
author | Pierre Lebleu <pierre.lebleu@technicolor.com> | 2016-10-13 12:52:05 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-10-18 08:53:38 +0200 |
commit | 6bb11d52f3ae8ce8aa0a270c6ae305809af8b7ce (patch) | |
tree | 2491fa80239961cdb2b555b6d6d79848bdd3ea69 /package/base-files/files/etc | |
parent | 5c96200dabe9190bc69ee0380ebbf0de4e0810f5 (diff) | |
download | mtk-20170518-6bb11d52f3ae8ce8aa0a270c6ae305809af8b7ce.zip mtk-20170518-6bb11d52f3ae8ce8aa0a270c6ae305809af8b7ce.tar.gz mtk-20170518-6bb11d52f3ae8ce8aa0a270c6ae305809af8b7ce.tar.bz2 |
procd: Allow initscripts to start one daemon instance at a time
Signed-off-by: Pierre Lebleu <pierre.lebleu@technicolor.com>
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-x | package/base-files/files/etc/rc.common | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common index e0de073..95cf956 100755 --- a/package/base-files/files/etc/rc.common +++ b/package/base-files/files/etc/rc.common @@ -102,9 +102,11 @@ ${INIT_TRACE:+set -x} . $IPKG_INSTROOT/lib/functions/procd.sh basescript=$(readlink "$initscript") rc_procd() { + local method="set" + [ -n "$2" ] && method="add" procd_open_service "$(basename ${basescript:-$initscript})" "$initscript" "$@" - procd_close_service + procd_close_service "$method" } start() { |