skip to Main Content

How to stop supervisor process with piped command – Telegram API

I want to send server logs to the telegram bot. Here's my supervisor config: [program:telegram-log-nginx] process_name=%(program_name)s_%(process_num)02d command=bash -c 'tail -f /var/log/nginx/error.log | /usr/share/telegram_log.sh nginx' autostart=true autorestart=true numprocs=1 When I stop supervisor supervisorctl stop telegram-log-nginx:* the process is still running: ps…

VIEW QUESTION
Back To Top
Search