HEX
Server: Apache
System: Linux ecres233.servconfig.com 4.18.0-553.94.1.lve.el8.x86_64 #1 SMP Thu Jan 22 12:37:22 UTC 2026 x86_64
User: gonnelllaw (9952)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //opt/sharedrads/autossl_runner.sh
#!/bin/bash
# The concept here is to kill an autossl proc that is taking longer than
# 24 hours. My theory is that sometimes the proc will get stuck, never finish
# and then cause autossl to never run properly.

pgrep autossl_check | while read pid; do
    run_days=$(ps --no-headers -p $pid -o etime | awk '/[0-9]+\-/');
    if [[ ! -z $run_days ]]; then
        proc_name=$(ps --no-headers -p $pid -o args);
        logger "Killing $pid, running for $run_days - $proc_name";
        kill $pid;
    fi
done