#!/bin/sh
cd /root/pwserver/authd
nohup ./authd >/root/pwserver/logs/authd.log 2>&1 &
echo "1/10: start authd"
sleep 1
cd /root/pwserver/gamedbd/
nohup ./gamedbd gamesys.conf >/root/pwserver/logs/gamedbd.log 2>&1 &
echo "2/10: start gamedbd"
sleep 2
cd /root/pwserver/gacd
nohup ./gacd gamesys.conf >/root/pwserver/logs/gacd.log 2>&1 &
echo "3/10: start gacd"
sleep 3
cd /root/pwserver/uniquenamed
nohup ./uniquenamed gamesys.conf >/root/pwserver/logs/uniquenamed.log 2>&1 &
echo "4/10: start uniquenamed"
sleep 2
cd /root/pwserver/gdeliveryd/
nohup ./gdeliveryd gamesys.conf >/root/pwserver/logs/gdeliveryd.log 2>&1 &
echo "5/10: start gdeliveryd"
sleep 2
cd /root/pwserver/gfactiond/
nohup ./gfactiond gamesys.conf >/root/pwserver/logs/gfactiond.log 2>&1 &
echo "6/10: start gfactiond"
sleep 2
cd /root/pwserver/logservice
nohup ./logservice logservice.conf >/root/pwserver/logs/logservice.log 2>&1 &
echo "7/10: start logservice"
sleep 2
cd /root/pwserver/glinkd/
nohup ./glinkd gamesys.conf 1 >/root/pwserver/logs/glinkd.log 2>&1 &
echo "8/10: start glinkd"
sleep 2
cd /root/pwserver/gamed/
nohup ./gs gs01 >/root/pwserver/logs/gs01.log 2>&1 &
echo "9/10: start gs gs01"
sleep 5
cd /root/pwserver/gamed/
nohup ./gs is61 >/root/pwserver/logs/is61.log 2>&1 &
echo "10/10: start gs is61"
sleep 5