Launching and stopping appium server programmtically

U are starting the server by splitting the normal command into different strings I mean ip—>1 string, port—> another string ,etc…which is always a big headache because of starting of the server requires certain parameters in the relevant sequence hence it’s always better to use AppiumDriverLocalService in your program which is the best and efficient…there are lots of tutorials available and U can go through this http://aksahu.blogspot.in/2015/10/start-and-stop-appium-server.html which is one of the best for this purpose