daemon script

pull/168/head
v2ray 2016-05-23 01:21:03 +02:00
parent 0ea2678e72
commit 54cf3f75b1
1 changed files with 13 additions and 0 deletions

13
tools/daemon/daemon.sh Normal file
View File

@ -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
"$@" &