app_name='pay-data-platform'
app_path=$(cd $(dirname $0); pwd)
command=$1
cmd_nginx="${app_path}/webserver/loadnginx.sh"
cmd_fpm="${app_path}/php/sbin/php-fpm"
if [ "$command" == 'start' ]; then
$cmd_fpm start
$cmd_nginx start
elif [ "$command" == 'restart' ]; then
$cmd_fpm restart
$cmd_nginx restart
elif [ "$command" == 'stop' ]; then
$cmd_nginx stop
$cmd_fpm stop
fi