Creating an autostart application on Ubuntu Linux
-
27-09-2019 - |
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
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow