我有一个服务,我想通过systemd来管理--让我们称之为foo。我写了单元文件,它们运转得很好。因此,如果我运行systemctl start foo,服务就会正确启动,并且我可以看到它在systemctl status foo中的状态。
但是,外部程序也可能启动服务,并且它不使用systemd启动服务。因此,服务可以运行,但是由于它不是通过systemd启动的,所以systemd不知道它。在本例中,systemctl status foo报告服务已失败,即使其运行正常。
是否有一种方法可以让systemd“继承”或“采用”此服务,这样systemctl status foo就可以正确地报告
为什么daphne通过supervisor向我返回错误 django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure () before accessing settings. 但是当我在supervisorctl中运行它时,它工作了。我定
我正在学习如何在Heroku上部署Django+Channels webapp的教程,当我运行下面的代码行时,我遇到了一个问题:
daphne chat.asgi:channel_layer --port 8888
我得到了以下信息:
ERROR: daphne 2.3.0 has requirement asgiref~=3.0, but you'll have asgiref 1.1.2 which is incompatible.
ERROR: channels 2.2.0 has requirement asgiref~=3.0, but you'll have asg
我有一个节点应用程序,通过Ubuntu16.04上的systemd服务运行
但是,经过一段时间后,服务将自动重新启动。
我在日志里看到的是:
Mar 17 14:35:10 testmachine systemd[1]: myService.service: Main process exited, code=exited, status=7/NOTRUNNING
Mar 17 14:35:10 testmachine systemd[1]: myService.service: Unit entered failed state.
Mar 17 14:35:10 testmachine sy