/usr/libexec/dovecot
NameSizeModeActions
anvil868400755editdlrm
auth5610640755editdlrm
config3847600755editdlrm
deliver367840755editdlrm
dict1673920755editdlrm
dict-expire1262320755editdlrm
dns-client235680755editdlrm
doveadm-server9918080755editdlrm
dovecot-lda367840755editdlrm
gdbhelper157360755editdlrm
health-check.sh10000755editdlrm
imap5202000755editdlrm
imap-hibernate707120755editdlrm
imap-login1342640755editdlrm
imap-urlauth430160755editdlrm
imap-urlauth-login245360755editdlrm
imap-urlauth-worker922880755editdlrm
indexer513120755editdlrm
indexer-worker397280755editdlrm
lmtp1112880755editdlrm
log414000755editdlrm
managesieve819280755editdlrm
managesieve-login518480755editdlrm
mkcert.sh8660755editdlrm
pop3897680755editdlrm
pop3-login518000755editdlrm
quota-status327200755editdlrm
rawlog281280755editdlrm
script281920755editdlrm
script-login220400755editdlrm
settings-history.py63730755editdlrm
stats1372240755editdlrm
submission1746800755editdlrm
submission-login610720755editdlrm
xml2text176400755editdlrm
Edit: /usr/libexec/dovecot/health-check.sh (1000B)
#!/bin/sh # # Copyright (c) Dovecot authors, see top-level COPYING file # # This script is intended to be called by the script service and to be # connected to a socket using a service configuration like this: # executable = script -p /path/to/health-check.sh # # This simple example merely answers "PONG\n" if the input is "PING\n". It # stops waiting for input after $timeout which causes the process to die # which causes the script module to close the socket. Inputs and outputs # can be written to STDIN and STDOUT, they are duplicated file-descriptors # if called from the script service. timeout=10 # timeout the read via trap for POSIX shell compatibility trap "exit 0" QUIT trap 'kill $timeout_pid 2>/dev/null' EXIT INT TERM { sleep $timeout kill -3 $$ 2>/dev/null } & timeout_pid=$! read -r input exit_code=$? cleaned_input=$(echo ${input} | sed "s/[^a-zA-Z0-9]//g") if [ ${exit_code} -eq 0 ] && [ "${cleaned_input}" = "PING" ];then echo "PONG" fi # always exit successful exit 0