From 0b7c3fd37794d720a9b8b00a636068f666514a8f Mon Sep 17 00:00:00 2001 From: Adam Thorn <alt36@cam.ac.uk> Date: Wed, 10 Jun 2020 16:14:12 +0100 Subject: [PATCH] Log WpkgInstaller service stopping/starting --- WpkgInstaller/WpkgInstaller.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WpkgInstaller/WpkgInstaller.cs b/WpkgInstaller/WpkgInstaller.cs index 14a74c9..3189175 100755 --- a/WpkgInstaller/WpkgInstaller.cs +++ b/WpkgInstaller/WpkgInstaller.cs @@ -51,6 +51,8 @@ namespace WpkgInstaller serviceStatus.dwCurrentState = ServiceState.SERVICE_RUNNING; SetServiceStatus(this.ServiceHandle, ref serviceStatus); + + eventLog.WriteEntry("Service started"); } protected override void OnStop() @@ -62,6 +64,8 @@ namespace WpkgInstaller serviceStatus.dwCurrentState = ServiceState.SERVICE_STOPPED; SetServiceStatus(this.ServiceHandle, ref serviceStatus); + + eventLog.WriteEntry("Service stopped"); } private void eventLog_EntryWritten(object sender, System.Diagnostics.EntryWrittenEventArgs e) -- GitLab