mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
Merge pull request #135 from johny-bravo/patch-1
Fix 3proxy.pid file check in scripts/rc.d/proxy.sh
This commit is contained in:
commit
dbdeaa337c
@ -20,7 +20,7 @@ case "$1" in
|
|||||||
|
|
||||||
stop)
|
stop)
|
||||||
echo Stopping 3Proxy
|
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`
|
/bin/kill `cat /usr/local/etc/3proxy/3proxy.pid`
|
||||||
else
|
else
|
||||||
/usr/bin/killall 3proxy
|
/usr/bin/killall 3proxy
|
||||||
@ -33,7 +33,7 @@ case "$1" in
|
|||||||
|
|
||||||
restart|reload)
|
restart|reload)
|
||||||
echo Reloading 3Proxy
|
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`
|
/bin/kill -s USR1 `cat /usr/local/etc/3proxy/3proxy.pid`
|
||||||
else
|
else
|
||||||
/usr/bin/killall -s USR1 3proxy
|
/usr/bin/killall -s USR1 3proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user