Browse Source

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

tangs 6 years ago
parent
commit
759df8c1e5
1 changed files with 1 additions and 1 deletions
  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`)"
 }