diff options
Diffstat (limited to 'meta/recipes-kernel/oprofile')
| -rwxr-xr-x | meta/recipes-kernel/oprofile/oprofileui-server/init | 37 | ||||
| -rw-r--r-- | meta/recipes-kernel/oprofile/oprofileui-server_git.bb | 13 |
2 files changed, 49 insertions, 1 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofileui-server/init b/meta/recipes-kernel/oprofile/oprofileui-server/init new file mode 100755 index 0000000000..2544ea4ac0 --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofileui-server/init | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ### BEGIN INIT INFO | ||
| 3 | # Provides: oprofile-server | ||
| 4 | # Required-Start: $network | ||
| 5 | # Required-Stop: $network | ||
| 6 | # Default-Start: 2 3 4 5 | ||
| 7 | # Default-Stop: 0 1 6 | ||
| 8 | # Short-Description: OProfileUI server | ||
| 9 | # Description: | ||
| 10 | ### END INIT INFO | ||
| 11 | |||
| 12 | . /etc/init.d/functions | ||
| 13 | |||
| 14 | case "$1" in | ||
| 15 | start) | ||
| 16 | echo "Starting OProfileUI server" | ||
| 17 | . /etc/profile | ||
| 18 | /usr/bin/oprofile-server & | ||
| 19 | ;; | ||
| 20 | |||
| 21 | stop) | ||
| 22 | echo "Stopping OProfileUI server" | ||
| 23 | killproc oprofile-server | ||
| 24 | ;; | ||
| 25 | |||
| 26 | restart) | ||
| 27 | $0 stop | ||
| 28 | sleep 1 | ||
| 29 | $0 start | ||
| 30 | ;; | ||
| 31 | |||
| 32 | *) | ||
| 33 | echo "usage: $0 { start | stop | restart }" | ||
| 34 | ;; | ||
| 35 | esac | ||
| 36 | |||
| 37 | exit 0 | ||
diff --git a/meta/recipes-kernel/oprofile/oprofileui-server_git.bb b/meta/recipes-kernel/oprofile/oprofileui-server_git.bb index b9f6a811e5..e75923f2a3 100644 --- a/meta/recipes-kernel/oprofile/oprofileui-server_git.bb +++ b/meta/recipes-kernel/oprofile/oprofileui-server_git.bb | |||
| @@ -6,8 +6,19 @@ PR = "r0" | |||
| 6 | 6 | ||
| 7 | S = "${WORKDIR}/git" | 7 | S = "${WORKDIR}/git" |
| 8 | 8 | ||
| 9 | SRC_URI = "git://git.yoctoproject.org/oprofileui;protocol=git" | 9 | SRC_URI = "git://git.yoctoproject.org/oprofileui;protocol=git \ |
| 10 | file://init" | ||
| 10 | 11 | ||
| 11 | EXTRA_OECONF += "--disable-client --enable-server" | 12 | EXTRA_OECONF += "--disable-client --enable-server" |
| 12 | 13 | ||
| 13 | RDEPENDS_${PN} = "oprofile" | 14 | RDEPENDS_${PN} = "oprofile" |
| 15 | |||
| 16 | do_install_append() { | ||
| 17 | install -d ${D}${sysconfdir}/init.d | ||
| 18 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/oprofileui-server | ||
| 19 | } | ||
| 20 | |||
| 21 | INITSCRIPT_NAME = "oprofileui-server" | ||
| 22 | INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ." | ||
| 23 | |||
| 24 | inherit update-rc.d | ||
