supervisor错误日志:sudo:需要终端来读取密码

问题描述 投票:0回答:1

我正在尝试使用supervisord 来守护vapor 服务器。这是我第一次这样做。我在主管错误日志中收到此唯一错误:

sudo: a terminal is required to read the password; either use the -S
option to read from standard input or configure an askpass helper
sudo: a password is required

另一篇相关文章也有同样的错误,我应用了他们所做的更改来修复它,但它并没有解决我的问题。

PHP sudo:需要终端来读取密码

这是我的supervisord.conf 文件:

[program:TextAlertServer]
command=swift run App serve
directory=/var/www/TextAlertServer
autostart=true
autorestart=true
stdout_logfile=/usr/local/var/log/supervisor/TextAlertServer-stdout.log
stderr_logfile=/usr/local/var/log/supervisor/TextAlertServer-stderr.log

我尝试添加服务器的用户名和密码,无需更改。

有什么想法吗?

supervisord
1个回答
0
投票

我无法让主管工作,所以我转向 launchd。我能够使用它启动我的服务器。到目前为止,效果非常好。

© www.soinside.com 2019 - 2024. All rights reserved.