How can we make a Python script auto executable at system startup (preferably linux) on every system it is installed on?

874 views Asked by At

I have a python script , it has to be auto - executed on startup. I know how to make it happen in my system through editing and adding files in etc/init.d . I have created a Python Package for it with setup.py and other files but I cant find a way how to make the script auto executable on every system that it is installed . Is there a way to do it using setup.py ?

1

There are 1 answers

0
Bimal On

Put that script in /etc/rc.local to execute it every time you boot the system.