You need a normal event service log generate server in event viewer.
Note : some applications store their settings in a user hive, not windows under hkey_local_machine, so you will need to run the creates application to configure it, and then configure the server service to run as that user.
) Using RegEdit : within the newly created "Parameters " key, create a string value called "Application " and enter the full path to the application you are wanting to run as a service.If you have many executables wanted to be installed as services, the last thing you want to do is service to do them manually manually at install time.persistent_env name"FOO_service_port" value"8989" / /service.service id hello /id name hello /name description This service runs the hello!- dir will be expanded to the containing directory of your config file, which is normally where your executable locates -!- optional manually feature: node_ENVproduction will be an environment variable available to your application.And that should.A working configuration file is very simple, as demonstrated below.Run serman install path_to_config_file will install the service.Hi, From your description, I know that you do not want to use Eventcreate or logevent to manually generate a specific Event.This can be an error-prone process. As a test, we can restart the Network Access Protection Agent services.
The following event log will generate at system logs.
Exe DisplayName "My Custom Service" ) Using activation RegEdit : create a "Parameters " occult key for your service extractor (e.g.Log Name: update System, source: Service Control manager, event ID: 7036.But it also has many useful features such as env and persistent_env below.Use "sc " to create a new service that launches "srvany " (e.g.Many existing answers include human intervention at install time.From: this post on technet forums: Here's what.Exe " from the general "Windows Server 2003 Resource Kit Tools " and copy it to a suitable location on your Win2008 server (e.g.For more info, take a look at the project website.All you need to write (and only write once) is a simple service configuration file along with your executable.Towards the above described scenario, I created serman, a command line tool to install an executable as a service.At portable the time of this posting, there occult is no Windows Server 2008 Resource Kit Tools, so get the "srvany. Best Regards, Aiden, aiden Cao, techNet Community extractor Support.
Sc create MyService binPath C:WindowsSystem32srvany.
Stdout and stderr are all logged.
Remote Desktop Services (Terminal Services).