Explorar o código

daemon script

v2ray %!s(int64=9) %!d(string=hai) anos
pai
achega
54cf3f75b1
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      tools/daemon/daemon.sh

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