0

My python source file automatically starts while I boot the system. I tried in init.d and some other shell scripts, but its not working. Note (I also make the executable file), but it doesn't work.

Please help.

cdomination
  • 605
  • 1
  • 7
  • 25
Ashok Kumarkvm
  • 148
  • 2
  • 7

1 Answers1

0

There are a number of other posts covering this topic, notably here

Put this in /etc/init (Use /etc/systemd in Ubuntu 15.x) mystartupscript.conf start on runlevel [2345] stop on runlevel [!2345] exec /path/to/script.py By placing this conf file there you hook into ubuntu's upstart service that runs services on startup. manual starting/stopping is done withsudo service mystartupscript start and sudo service mystartupscript stop

There is another solution here also also

Community
  • 1
  • 1
D3181
  • 2,037
  • 5
  • 19
  • 44