Question

I'm trying to setup a Python application that should automatically start when Linux boots. It should also start (unless not already running) if the computer resumes from standby mode - which is mainly the problem.

Does anybody know where to integrate these requirements?

Thanks, Marius

Was it helpful?

Solution

Configure a cron job every minute to detect if application running - if not start.

OTHER TIPS

If you want to guarantee it's always running, have a look at man inittab.

The easiest way I've found to autostart apps is to use Upstart. It's way better than the cron solution above.

http://upstart.ubuntu.com/getting-started.html

https://help.ubuntu.com/community/UbuntuBootupHowto

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top