mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 15:59:41 +08:00
Fix 3proxy.pid file check
This commit is contained in:
1 parent
2049886dcf
commit
256319bd06
1 file changed
+3
-3
@@ -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
|
||||
exit 0
|
||||
Reference in new issue
Block a user