aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/Program.cs
blob: 8ca04df47026d11902ee67021e0c088e7ace24a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Text;
using OpenSim.Framework.Console;

namespace OpenSim.Grid.GridServer
{
    public class Program
    {
        [STAThread]
        public static void Main(string[] args)
        {
            log4net.Config.XmlConfigurator.Configure();

            GridServerBase app = new GridServerBase();

            if (args.Length > 0 && args[0] == "-setuponly")
            {
                app.Config();
            }
            else
            {
                app.Startup();
                app.Work();
            }
        }
    }
}