开发者

Creating an autostart application on Ubuntu Linux

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜