| 
				Server : Apache System : Linux ecngx264.inmotionhosting.com 4.18.0-553.77.1.lve.el8.x86_64 #1 SMP Wed Oct 8 14:21:00 UTC 2025 x86_64 User : lonias5 ( 3576) PHP Version : 7.3.33 Disable Function : NONE Directory : /proc/self/root/proc/thread-self/root/opt/sharedrads/  | 
Upload File :  | 
#!/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