瀏覽代碼

修改server.sh 指定用户运行bug

tangs 6 年之前
父節點
當前提交
759df8c1e5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server.sh

+ 1 - 1
server.sh

@@ -24,7 +24,7 @@ start (){
 		exit
 	fi
 
-	start-stop-daemon --start --make-pidfile --background --pidfile=$PROCESS --user=$USER --exec=$DAEMON
+	start-stop-daemon --start --make-pidfile --background --pidfile=$PROCESS --chuid=$USER --exec=$DAEMON
 	echo "$NAME start successful, pid(`cat $PROCESS`)"
 }