【发布时间】:2013-06-24 22:17:04
【问题描述】:
我有一个运行类似守护进程的服务的 python 脚本,现在我创建了 python 包。我从那里创建了一个 .deb 包,但我希望脚本与 upstart 一起运行,但我无法在安装 .deb 包时自动将文件写入 /etc/init ubuntu 文件夹,这样我的守护进程就不会t 必须在重新启动时手动启动。我不知道我是否解释得很好,但我不知道如何更好地解释它......
我有什么: python_script.py ->运行一个python守护进程
python_script.tar.gz -> python 包
我需要什么:
python.deb -> 安装 python 脚本并为我的 python 脚本设置暴发户,使其作为服务/守护进程运行
【问题讨论】:
标签: ubuntu python-2.7 daemon deb upstart