Releases: xtremekforever/swift-systemd
swift-systemd v0.0.4
Adds simple support for sending the WATCHDOG=1
notification from SystemdNotifier
and support for sending it automatically from SystemdService
using a configurable interval:
let systemdService = SystemdService(watchdogEnabled: true, watchdogInterval: .seconds(30))
swift-systemd v0.0.3
Adds a SystemdLifecycle
product to the library that adds a SystemdService
(using swift-service-lifecycle
) that can be added to a ServiceGroup
and send the Ready signal at startup, followed by the Stopping signal when exiting during graceful shutdown.
swift-systemd v0.0.2
Adds very simple integration with systemd through a SystemdNotifier
interface. Call the notify
method using ServiceState.Ready
or ServiceState.Stopping
at the appropriate times in the app to notify systemd of the status. When this is enabled, the app can be run as a service with Type=notify
.
swift-systemd v0.0.1
This is the first release of this simple Swift library for systemd integration. All that is included is basic SystemdHelpers
to determine if an app is being run by systemd.