2008-01-23 17:00:31 +00:00
|
|
|
#!/bin/sh
|
2008-08-01 12:56:09 +00:00
|
|
|
### BEGIN INIT INFO
|
|
|
|
# Provides: hddtemp
|
|
|
|
# Required-Start: $network
|
|
|
|
# Required-Stop: $network
|
|
|
|
# Default-Start: 2 3 4 5
|
|
|
|
# Default-Stop: 0 1 6
|
|
|
|
# Short-Description: OProfile server
|
|
|
|
# Description:
|
|
|
|
### END INIT INFO
|
2008-01-23 17:00:31 +00:00
|
|
|
|
2008-08-01 12:56:09 +00:00
|
|
|
. /etc/init.d/functions
|
2008-01-23 17:00:31 +00:00
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
echo "Starting automatic qemu services"
|
|
|
|
. /etc/profile
|
|
|
|
/usr/bin/oprofile-server &
|
|
|
|
;;
|
|
|
|
|
|
|
|
stop)
|
|
|
|
echo "Stopping qemu services"
|
|
|
|
killproc oprofile-server
|
|
|
|
;;
|
|
|
|
|
|
|
|
restart)
|
|
|
|
$0 stop
|
|
|
|
sleep 1
|
|
|
|
$0 start
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "usage: $0 { start | stop | restart }"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|