private void InitializeComponent()
        {
            this.serviceInstaller        = new global::System.ServiceProcess.ServiceInstaller();
            this.serviceProcessInstaller = new ServiceProcessInstaller();

            //
            // serviceInstaller
            //
            this.serviceInstaller.Description      = "LogMonitor feeding data from IIS logs into Graphite and StatsD.";
            this.serviceInstaller.DisplayName      = "LogMonitor";
            this.serviceInstaller.ServiceName      = "LogMonitor";
            this.serviceInstaller.StartType        = ServiceStartMode.Automatic;
            this.serviceInstaller.DelayedAutoStart = true;

            //
            // serviceProcessInstaller
            //
            this.serviceProcessInstaller.Account  = ServiceAccount.LocalSystem;
            this.serviceProcessInstaller.Password = null;
            this.serviceProcessInstaller.Username = null;

            //
            // ServiceInstaller
            //
            this.Installers.AddRange(new Installer[]
            {
                this.serviceInstaller,
                this.serviceProcessInstaller
            });
        }
        private void InitializeComponent()
        {
            this.serviceInstaller = new global::System.ServiceProcess.ServiceInstaller();
            this.serviceProcessInstaller = new ServiceProcessInstaller();

            //
            // serviceInstaller
            //
            this.serviceInstaller.Description = "LogMonitor feeding data from IIS logs into Graphite and StatsD.";
            this.serviceInstaller.DisplayName = "LogMonitor";
            this.serviceInstaller.ServiceName = "LogMonitor";
            this.serviceInstaller.StartType = ServiceStartMode.Automatic;
            this.serviceInstaller.DelayedAutoStart = true;

            //
            // serviceProcessInstaller
            //
            this.serviceProcessInstaller.Account = ServiceAccount.LocalSystem;
            this.serviceProcessInstaller.Password = null;
            this.serviceProcessInstaller.Username = null;

            //
            // ServiceInstaller
            //
            this.Installers.AddRange(new Installer[]
            {
                this.serviceInstaller,
                this.serviceProcessInstaller
            });
        }
        private void InitializeComponent()
        {
            this.serviceInstaller = new global::System.ServiceProcess.ServiceInstaller();
            this.serviceProcessInstaller = new ServiceProcessInstaller();

            //
            // serviceInstaller
            //
            this.serviceInstaller.Description = "Graphite System Monitoring";
            this.serviceInstaller.DisplayName = "Graphite System Monitoring";
            this.serviceInstaller.ServiceName = "GraphiteSystemMonitoring";
            this.serviceInstaller.StartType = ServiceStartMode.Automatic;

            //
            // serviceProcessInstaller
            //
            this.serviceProcessInstaller.Account = ServiceAccount.LocalSystem;
            this.serviceProcessInstaller.Password = null;
            this.serviceProcessInstaller.Username = null;

            //
            // ServiceInstaller
            //
            this.Installers.AddRange(new Installer[]
            {
                this.serviceInstaller,
                this.serviceProcessInstaller
            });
        }
Exemplo n.º 4
0
        private void InitializeComponent()
        {
            this.serviceInstaller        = new global::System.ServiceProcess.ServiceInstaller();
            this.serviceProcessInstaller = new ServiceProcessInstaller();

            //
            // serviceInstaller
            //
            this.serviceInstaller.Description = "Graphite System Monitoring";
            this.serviceInstaller.DisplayName = "Graphite System Monitoring";
            this.serviceInstaller.ServiceName = "GraphiteSystemMonitoring";
            this.serviceInstaller.StartType   = ServiceStartMode.Automatic;

            //
            // serviceProcessInstaller
            //
            this.serviceProcessInstaller.Account  = ServiceAccount.LocalSystem;
            this.serviceProcessInstaller.Password = null;
            this.serviceProcessInstaller.Username = null;

            //
            // ServiceInstaller
            //
            this.Installers.AddRange(new Installer[]
            {
                this.serviceInstaller,
                this.serviceProcessInstaller
            });
        }