Skip to content

Commit

Permalink
feat: use ld_preload on df_coserver_r
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderYe committed Jan 17, 2022
1 parent ef7812f commit a320ad5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion build/Centos6-DNF/root/run
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ cd /home/neople/coserver
chmod 777 *
rm -f /home/neople/coserver/pid/*.pid
rm -rf /home/neople/coserver/log/*.*
./df_coserver_r coserver start &
if $PRELOAD_LD;then
echo "start game use LD_PRELOAD mode"
LD_PRELOAD=/lib/libhook.so ./df_coserver_r coserver start &
else
echo "start game use normal mode"
./df_coserver_r coserver start &
fi

cd /home/neople/community
chmod 777 *
Expand Down
8 changes: 7 additions & 1 deletion build/Centos7-DNF/root/run
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ cd /home/neople/coserver
chmod 777 *
rm -f /home/neople/coserver/pid/*.pid
rm -rf /home/neople/coserver/log/*.*
./df_coserver_r coserver start &
if $PRELOAD_LD;then
echo "start game use LD_PRELOAD mode"
LD_PRELOAD=/lib/libhook.so ./df_coserver_r coserver start &
else
echo "start game use normal mode"
./df_coserver_r coserver start &
fi

cd /home/neople/community
chmod 777 *
Expand Down

0 comments on commit a320ad5

Please sign in to comment.