Crate universal_service

Source
Expand description

universal-service is a Rust crate that provides utilities for building services that can run across multiple platforms.

For Windows users, this library provides support for running services under the Windows Service manager directly, rather than requiring Scheduled Tasks hacks or NSSM.

Functions§

run_simple_nonservice
Run a ServiceMain function as a simple foreground process. Instead of registering as a service, this runs the function with just a signal handler that sends to the shutdown receiver.
universal_service_main

Type Aliases§

ServiceMain
Type signature of a service’s main function used by this library.