--- asterisk 2024-03-24 20:06:08.552981081 +1100 +++ /etc/init.d/asterisk 2024-03-25 23:37:35.802936589 +1100 @@ -15,7 +15,7 @@ [ -d "/proc/${PID}" ] || return 1 EXE="$(readlink -f /proc/${PID}/exe)" EXE="${EXE% (deleted)}" # in case asterisk got upgraded and we're still looking at an old one. - [ "${EXE}" = /usr/sbin/asterisk ] || return 1 # pid got re-used for another process. + [ "${EXE}" = /usr/bin/asterisk ] || [ "${EXE}" = /usr/sbin/asterisk ] || return 1 # pid got re-used for another process. # PID reported in pidfile is active, and is still an asterisk instance. return 0