Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38024
return 0
}
+stop_service() {
+ return 0
+}
+
service_triggers() {
return 0
}
+service_running() {
+ return 0
+}
+
stop_service() {
return 0
}
. "$initscript"
[ -n "$USE_PROCD" ] && {
+ EXTRA_COMMANDS="${EXTRA_COMMANDS} running"
+
. $IPKG_INSTROOT/lib/functions/procd.sh
basescript=$(readlink "$initscript")
rc_procd() {
stop() {
procd_kill "$(basename ${basescript:-$initscript})" "$1"
+ stop_service "$@"
}
reload() {
- start
+ if eval "type reload_service" 2>/dev/null >/dev/null; then
+ reload_service "$@"
+ else
+ restart
+ fi
+ }
+
+ running() {
+ service_running "$@"
}
}