Skip to content

feat: Windows Service wrapper for production deployments#2

Merged
stylebending merged 1 commit into
mainfrom
feature/windows-service-wrapper
Feb 16, 2026
Merged

feat: Windows Service wrapper for production deployments#2
stylebending merged 1 commit into
mainfrom
feature/windows-service-wrapper

Conversation

@stylebending
Copy link
Copy Markdown
Owner

Summary

Adds Windows Service support allowing the engine to run as a background Windows service for production deployments.

Changes

  • Add windows-service crate dependency for Windows SCM integration
  • Implement service install/uninstall via --install / --uninstall flags
  • Add proper service control handling (stop command support)
  • Report service status to Windows Service Control Manager (Running → Stopping → Stopped)
  • Graceful shutdown that stops all plugins before exit
  • Service logging to %PROGRAMDATA%\win_event_engine\logs\service.log
  • Service config location: %PROGRAMDATA%\win_event_engine\config\config.toml

Usage

# Install as Windows Service (requires admin)
engine.exe --install
# Start the service
sc start WinEventEngine
# Stop the service
sc stop WinEventEngine
# Uninstall
engine.exe --uninstall

Testing

  • Service installs successfully
  • Service starts and runs
  • Service stops gracefully
  • Logs written to service.log

@stylebending stylebending merged commit 09056c4 into main Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant