diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-09-03 14:45:39 +0100 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2012-09-03 22:52:55 -0700 |
commit | 3063126e2c8ec72e900a48f7048aaf9662606792 (patch) | |
tree | 1535805e4a122156ac3416699deeac7cf28adbd9 /meta/recipes-kernel/oprofile/oprofileui-server | |
parent | e6755e3351ccf1116c06b9608728630505908ce4 (diff) | |
download | openembedded-core-3063126e2c8ec72e900a48f7048aaf9662606792.tar.gz openembedded-core-3063126e2c8ec72e900a48f7048aaf9662606792.tar.bz2 openembedded-core-3063126e2c8ec72e900a48f7048aaf9662606792.zip |
oprofileui-server: move initscript from qemu-config
The qemu-config initscript was only starting oprofile-server, so move it
to the oprofileui-server recipe.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/oprofile/oprofileui-server')
-rwxr-xr-x | meta/recipes-kernel/oprofile/oprofileui-server/init | 37 |
1 files changed, 37 insertions, 0 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 @@ +#!/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 |