From e09363cb96c73a4d08f76bdc7108431383394dbe Mon Sep 17 00:00:00 2001 From: v2ray Date: Wed, 13 Jan 2016 01:05:27 +0100 Subject: [PATCH] check file exists before executing --- release/config/systemv/v2ray | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release/config/systemv/v2ray b/release/config/systemv/v2ray index 839730f0..4909ded7 100644 --- a/release/config/systemv/v2ray +++ b/release/config/systemv/v2ray @@ -26,11 +26,15 @@ DAEMON_OPTS="-config /etc/v2ray/config.json" [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables +if [ -f "/lib/init/vars.sh"]; then . /lib/init/vars.sh +fi +if [ -f "/lib/lsb/init-functions"]; then # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions +fi # # Function that starts the daemon/service