-1

I am looking to add a web hook to a supervisord file.

// sys admin skills are less then present...

current file..

[supervisord]
user=root
nodaemon=true
logfile=/role/log/supervisord.log

Original approach would be to make it run a shell script, however, I am unsure how to pull what process is being started...

0

Define an event listener that triggers on PROCESS_STATE_STARTING. Then you can write a simplified event listener (see the example) to actually perform the Slack notification.

An event listener configuration might look like this:

[eventlistener:slack]
command=slack_listener.py
events=PROCESS_STATE_STARTING

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.