Browse Source

base-files: add a post start hook to the procd init.d api

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 41344
John Crispin 11 years ago
parent
commit
3a9bfa5938
1 changed files with 3 additions and 0 deletions
  1. 3 0
      package/base-files/files/etc/rc.common

+ 3 - 0
package/base-files/files/etc/rc.common

@@ -109,6 +109,9 @@ ${INIT_TRACE:+set -x}
 
 	start() {
 		rc_procd start_service "$@"
+		if eval "type service_started" 2>/dev/null >/dev/null; then
+			service_started
+		fi
 	}
 
 	stop() {