Commit 4985f382 authored by Georgios Ouzounis's avatar Georgios Ouzounis

LAM-49 Removed status argument from Apache Yarn init script.

parent 772913e9
......@@ -8,6 +8,8 @@ LOCKFILE="$INSTALLATION_PATH/hadoop/yarn-lock"
# The command that will start Apache Yarn.
START_COMMAND="$INSTALLATION_PATH/hadoop/sbin/start-yarn.sh"
# The command that will stop Apache Yarn.
STOP_COMMAND="$INSTALLATION_PATH/hadoop/sbin/stop-yarn.sh"
start(){
......@@ -44,12 +46,8 @@ case "$1" in
condrestart)
[ -f $LOCKFILE ] && restart || :
;;
status)
ps -p $(cat $PIDFILE)
RETVAL=$?
;;
*)
echo "Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart}"
RETVAL=1
esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment