Я установил на свой сервер 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