aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-06-19 18:53:12 +0800
committervs <vs@FreeBSD.org>2004-06-19 18:53:12 +0800
commit64ae0391f8ba1ddb6c49ab76d25cb671f7c386ee (patch)
tree5d50c4f19ebee53d4438734145825c71bac04f8c /net
parentdadcdc0eee6091390c03a7cd2c808fb5a3dd6dfd (diff)
downloadfreebsd-ports-graphics-64ae0391f8ba1ddb6c49ab76d25cb671f7c386ee.tar.gz
freebsd-ports-graphics-64ae0391f8ba1ddb6c49ab76d25cb671f7c386ee.tar.zst
freebsd-ports-graphics-64ae0391f8ba1ddb6c49ab76d25cb671f7c386ee.zip
Check if socks5.conf exists in startup-script.
PR: ports/68067 Submitted by: KIMURA Yasuhiro
Diffstat (limited to 'net')
-rw-r--r--net/socks5/files/socks5.sh.sample2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socks5/files/socks5.sh.sample b/net/socks5/files/socks5.sh.sample
index 8f737356377..77d485d3959 100644
--- a/net/socks5/files/socks5.sh.sample
+++ b/net/socks5/files/socks5.sh.sample
@@ -7,7 +7,7 @@ fi
case "$1" in
start)
- [ -x ${PREFIX}/bin/socks5 ] && ${PREFIX}/bin/socks5 && echo -n ' socks5'
+ [ -x ${PREFIX}/bin/socks5 -a -f ${PREFIX}/etc/socks5.conf ] && ${PREFIX}/bin/socks5 && echo -n ' socks5'
;;
stop)
killall socks5 && echo -n ' socks5'