python的.py程序如何开机启动
Tofloor
poster avatar
130******98
deepin
2017-01-07 06:08
Author
我有一些.py程序,比如dowsdns和zeronet等.py程序,以前ubuntu可以直接加入到自启动列表很方便,深度发现除了商店下载的程序可以直接右键选择开机启动,这个.py程序如何自启动呢?我要去单独搞个启自动管理吗?
Reply Favorite View the author
All Replies
avatar
A·S·M·X·T 😏😜
deepin
2017-01-07 07:48
#1
加入到~/.profile尾部试试?
Reply View the author
avatar
Feng Yu
deepin
2017-01-07 08:38
#2
https://bbs.deepin.org/post/133834
加入到~/.profile尾部试试?

那不是开机自启动,而是启动交互式bash的时候运行。
Reply View the author
avatar
130******98
deepin
2017-01-08 09:13
#3
那怎么搞
Reply View the author
avatar
yping
deepin
2017-01-08 18:06
#4
把命令加到 /etc/rc.local 试试?
Reply View the author
avatar
130******98
deepin
2017-01-08 20:22
#5
官方的人出来技术支持下
Reply View the author
avatar
A·S·M·X·T 😏😜
deepin
2017-01-09 03:38
#6
https://bbs.deepin.org/post/133834
那不是开机自启动,而是启动交互式bash的时候运行。

那不是.bashrc的作用吗? 我的.profile似乎可以开机启动。。。。。。。。。

不行你也可以试试用systemd写服务文件自启动
范例: http://blog.csdn.net/u010872995/article/details/49909319

Reply View the author
avatar
130******98
deepin
2017-01-09 08:15
#7
这个需求竟然不广泛?
Reply View the author
avatar
utopio
deepin
2017-01-09 20:53
#8
可以设置bash自动启动,然后在bashrc里写入这个。
Reply View the author
avatar
130******98
deepin
2024-09-09 14:39
#9

用systemd的服务单元或者supervisor实现了

Reply View the author