-3

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 ?

  • there are many ways you can do it. For example cronjob would a way to auto execute with the paramet `onboot`. You don't need setup.py to autoexecute a script. – oz123 Jun 24 '14 at 11:13
  • @Oz123 : But if it is installed on a new system , will it automatically run on it ? I can configure and create cronjob on my machine but can it be replicated on every machine installed on ? – shanmbic Jun 24 '14 at 11:23
  • yes. You just need to distribute the script on a consitent location – oz123 Jun 24 '14 at 11:24
  • @Oz123 Thanks a lot. Will try implementing it :) – shanmbic Jun 24 '14 at 11:34

1 Answers1

-1

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

Bimal
  • 16