mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
oprofileui-server: move initscript from qemu-config
The qemu-config initscript was only starting oprofile-server, so move it to the oprofileui-server recipe. (From OE-Core rev: 3063126e2c8ec72e900a48f7048aaf9662606792) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1256507769
commit
c2e68c6fb9
+37
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: oprofile-server
|
||||
# Required-Start: $network
|
||||
# Required-Stop: $network
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: OProfileUI server
|
||||
# Description:
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/init.d/functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting OProfileUI server"
|
||||
. /etc/profile
|
||||
/usr/bin/oprofile-server &
|
||||
;;
|
||||
|
||||
stop)
|
||||
echo "Stopping OProfileUI server"
|
||||
killproc oprofile-server
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "usage: $0 { start | stop | restart }"
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -6,8 +6,19 @@ PR = "r0"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRC_URI = "git://git.yoctoproject.org/oprofileui;protocol=git"
|
||||
SRC_URI = "git://git.yoctoproject.org/oprofileui;protocol=git \
|
||||
file://init"
|
||||
|
||||
EXTRA_OECONF += "--disable-client --enable-server"
|
||||
|
||||
RDEPENDS_${PN} = "oprofile"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/oprofileui-server
|
||||
}
|
||||
|
||||
INITSCRIPT_NAME = "oprofileui-server"
|
||||
INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ."
|
||||
|
||||
inherit update-rc.d
|
||||
|
||||
Reference in New Issue
Block a user