From 256319bd063738e45890651df34007ba89f70851 Mon Sep 17 00:00:00 2001 From: johny-bravo Date: Sun, 22 Jan 2017 14:55:19 +0300 Subject: [PATCH] Fix 3proxy.pid file check --- scripts/rc.d/proxy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/rc.d/proxy.sh b/scripts/rc.d/proxy.sh index c157486..9a6e573 100644 --- a/scripts/rc.d/proxy.sh +++ b/scripts/rc.d/proxy.sh @@ -20,7 +20,7 @@ case "$1" in stop) echo Stopping 3Proxy - if [ /usr/local/etc/3proxy/3proxy.pid ]; then + if [ -f /usr/local/etc/3proxy/3proxy.pid ]; then /bin/kill `cat /usr/local/etc/3proxy/3proxy.pid` else /usr/bin/killall 3proxy @@ -33,7 +33,7 @@ case "$1" in restart|reload) echo Reloading 3Proxy - if [ /usr/local/etc/3proxy/3proxy.pid ]; then + if [ -f /usr/local/etc/3proxy/3proxy.pid ]; then /bin/kill -s USR1 `cat /usr/local/etc/3proxy/3proxy.pid` else /usr/bin/killall -s USR1 3proxy @@ -45,4 +45,4 @@ case "$1" in echo Usage: $0 "{start|stop|restart}" exit 1 esac -exit 0 \ No newline at end of file +exit 0