Is it possible to run appium server as a service in Linux like Ubuntu?

I’ve googled the topic but no result. One alternative way is to use Java client to start appium server programatically. However, I am using Python as my test script. It seems the Python client does not have such APIs.

So, I want to know if it is possible to run appium server as a service, so that I can use the following command to start/stop it:

service appium-server start

service appium-server stop

Any information will be appreciated.

did you try to install appium with “npm” way?

Yes. I installed appium with “npm”.

so why not to start it yourself in code? e.g. with http://stackoverflow.com/questions/3730964/python-script-execute-commands-in-terminal just by sending “appium” into terminal?