# - 100-Postfix-Services.rule # # Use 'check-rule' & 'check-all-rules' on new or changed rule files # before the Watcher service is restarted. # LOG_CLASS=smtpd ACTION=get_PF_smtpd_PID RULE="Postfix-smtpd" Pattern='/smtpd[' #--------- Decision ----------- if [[ "$REPLY" =~ "$Pattern" ]]; then $ACTION; return $?; fi