2 # Contributed by basilburn
8 PID
=`pidof -o %PPID /usr/sbin/oprofiled`
11 stat_busy
"Starting Profiler"
12 [ -z "$PID" ] && /usr
/bin
/opcontrol
--init && \
13 /usr
/bin
/opcontrol
--start $OPTIONS &>/dev
/null
17 echo $PID > /var
/run
/oprofiled.pid
23 stat_busy
"Stopping Profiler"
24 [ ! -z "$PID" ] && /usr
/bin
/opcontrol
--shutdown &>/dev
/null
28 rm /var
/run
/oprofiled.pid
39 /usr
/bin
/opcontrol
--reset
43 echo "usage: $0 {start|stop|restart|reset}"