diff options
-rw-r--r-- | extra/asterisk/APKBUILD | 2 | ||||
-rw-r--r-- | extra/asterisk/asterisk.initd | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extra/asterisk/APKBUILD b/extra/asterisk/APKBUILD index 14e8b23b1..2e0f680c9 100644 --- a/extra/asterisk/APKBUILD +++ b/extra/asterisk/APKBUILD @@ -91,5 +91,5 @@ b00c9d98ce2ad445501248a197c6e436 100-uclibc-daemon.patch 5008f51c737ec91f5047519bc9f25b85 103-rundir.patch b4a97cb1ec3cc3f71a10ce8c067ab430 asterisk.pre-install 62ecffc90b6714b85f377d1fac73c58b asterisk.post-install -bbcd152417bb7c838b25cb6007db91da asterisk.initd +9748fc0fb3cf43b18a68584bdc20cb6c asterisk.initd ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd" diff --git a/extra/asterisk/asterisk.initd b/extra/asterisk/asterisk.initd index dc69aacf4..cd5ee0054 100644 --- a/extra/asterisk/asterisk.initd +++ b/extra/asterisk/asterisk.initd @@ -6,7 +6,7 @@ is_running() { if [ -z "$(pidof asterisk)" ]; then return 1 else - PID="$(cat /var/run/asterisk/asterisk.pid)" + PID="$(cat /var/run/asterisk/asterisk.pid 2>/dev/null)" for x in $(pidof asterisk); do if [ "${x}" = "${PID}" ]; then return 0 |