Python Script execution

I have a python script the I run manually through the linux command prompt that I access through the pendant. The script runs an XML-RPC server with functions that are being called by the PolyScope. The problem is that when I turn off the controller or restart the robot, I will have to manually rerun the script. Is there a way to run the script automatically on startup? Please advise.

Hello @abdul.abusamra

take a look at our myDaemonSwing - sample. There you get an insight in how run an XML - RPC server as a daemon process on the robot.