kine_LocalFSService/Program.cs
using Navertica.Services.NVRLocalFSService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;

namespace Navertica.Services.NVRLocalFSService
{
    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            if (Environment.UserInteractive)
            {
                var myService = new LocalFSWinService();
                myService.OnDebug();
                System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
            }
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new LocalFSWinService()
            };
            ServiceBase.Run(ServicesToRun);
        }
    }
}
