开发者

Creating an autostart application on Ubuntu Linux

开发者 https://www.devze.com 2023-01-18 20:59 出处:网络
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 mainl

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 prob开发者_开发问答lem.

Does anybody know where to integrate these requirements?

Thanks, Marius


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消