FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 0b7c3fd3 authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

Log WpkgInstaller service stopping/starting

parent d65b9510
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment