Do not use

This commit is contained in:
z3APA3A 2020-10-30 23:01:11 +03:00
parent d0f735e87b
commit 9e51fe7308
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/3proxy #!/bin/3proxy
daemon #daemon
pidfile /var/run/3proxy/3proxy.pid pidfile /var/run/3proxy/3proxy.pid
chroot /usr/local/3proxy proxy proxy chroot /usr/local/3proxy proxy proxy
include /conf/3proxy.cfg include /conf/3proxy.cfg

View File

@ -18,7 +18,7 @@ case "$1" in
echo Starting 3Proxy echo Starting 3Proxy
/bin/mkdir -p /var/run/3proxy /bin/mkdir -p /var/run/3proxy
/bin/3proxy /etc/3proxy/3proxy.cfg /bin/3proxy /etc/3proxy/3proxy.cfg &
RETVAL=$? RETVAL=$?
echo echo
@ -29,6 +29,7 @@ case "$1" in
echo Stopping 3Proxy echo Stopping 3Proxy
if [ -f /var/run/3proxy/3proxy.pid ]; then if [ -f /var/run/3proxy/3proxy.pid ]; then
/bin/kill `cat /var/run/3proxy/3proxy.pid` /bin/kill `cat /var/run/3proxy/3proxy.pid`
rm /var/run/3proxy/3proxy.pid
else else
/usr/bin/killall 3proxy /usr/bin/killall 3proxy
fi fi
@ -42,6 +43,7 @@ case "$1" in
echo Reloading 3Proxy echo Reloading 3Proxy
if [ -f /var/run/3proxy/3proxy.pid ]; then if [ -f /var/run/3proxy/3proxy.pid ]; then
/bin/kill -s USR1 `cat /var/run/3proxy/3proxy.pid` /bin/kill -s USR1 `cat /var/run/3proxy/3proxy.pid`
rm /var/run/3proxy/3proxy.pid
else else
/usr/bin/killall -s USR1 3proxy /usr/bin/killall -s USR1 3proxy
fi fi