systemd

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package systemd contains utilities for communication with the systemd service manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify

func Notify() func()

Notify systemd that the service is ready. This returns a function which should be called to notify that the service is stopping. This function will be called on exit if the service exits on a signal. NOTE: this function should only be called once, and so it should generally only be used directly in a command's Run handler. It should not be called as a result of rc commands. See #7540.

func UpdateStatus

func UpdateStatus(status string) error

UpdateStatus updates the systemd status

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL