如何在我的服务器上找到 ProtonMail Bridge PID 文件?

如何在我的服务器上找到 ProtonMail Bridge PID 文件?

我在我的服务器上安装了 Monit 以及“ProtonMail Bridge”。

我遵循了以下教程:

https://pychao.com/2020/06/10/update-on-using-protonmail-bridge-on-headless-wordpress-linux-servers/

如何知道“ProtonMail Bridge”服务的路径以将其添加到 Monit?

ubuntu@www-example-com ~ $ ps -ef

在此处输入图片描述

这是我的 Monit 配置。ProtonMail Bridge 方不正确:

/var/run/fail2ban/protonmail-bridge.pid

上面那行代码的路径不好,不知道该穿什么来监控ProtonMail Bridge。

$ sudo nano /etc/monit/conf.d/lemp-services

check process sshd with pidfile /var/run/sshd.pid
   group login
   start program = "/etc/init.d/sshd start"
   stop program = "/etc/init.d/sshd stop"

check process fail2ban with pidfile /var/run/fail2ban/fail2ban.pid
   start program = "/etc/init.d/fail2ban start"
   stop program = "/etc/init.d/fail2ban stop"

check process nginx with pidfile /var/run/nginx.pid
   group www-data
   start program = "/etc/init.d/nginx start"
   stop program = "/etc/init.d/nginx stop"

check process mysql with pidfile /var/run/mysqld/mysqld.pid
   start program = "/etc/init.d/mysql start"
   stop program = "/etc/init.d/mysql stop"

check process php-fpm with pidfile /var/run/php/php7.3-fpm.pid
   start program = "/etc/init.d/php7.3-fpm start"
   stop program = "/etc/init.d/php7.3-fpm stop"

check process protonmail-bridge with pidfile /var/run/fail2ban/protonmail-bridge.pid
   start program = "/etc/init.d/protonmail-bridge start"
   stop program = "/etc/init.d/protonmail-bridge stop"

check process postfix with pidfile /var/spool/postfix/pid/master.pid
   start program = "/etc/init.d/postfix start"
   stop program = "/etc/init.d/postfix stop"

check file drupal with path /var/www/www-drupal-com/web/sites/default/settings.php

相关内容