From 54cf3f75b10a64c75d486f65e78b499b85e98d94 Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 23 May 2016 01:21:03 +0200 Subject: [PATCH] daemon script --- tools/daemon/daemon.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tools/daemon/daemon.sh diff --git a/tools/daemon/daemon.sh b/tools/daemon/daemon.sh new file mode 100644 index 000000000..0296fb881 --- /dev/null +++ b/tools/daemon/daemon.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# A simple script to run V2Ray in background. + +if test -t 1; then + exec 1>/dev/null +fi + +if test -t 2; then + exec 2>/dev/null +fi + +"$@" & \ No newline at end of file