package
0.0.0-20230628214157-3bfe64699e82
Repository: https://github.com/gravitational/gravity.git
Documentation: pkg.go.dev
# Functions
Disable disables service with the specified name.
IsFailed determines if the specified service has failed.
IsStatus checks whether the specified service has the given active status.
Name returns the unit name part of path.
Reinstall installs a systemd service specified with req.
ReinstallOneshot installs a systemd service specified with req.
ReinstallOneshotSimple installs a systemd service named serviceName of type=oneshot using args as arguments to the gravity binary.
ReinstallSimpleService reinstalls the cmd as a simple service with the specified serviceName.
Start starts service with the specified name if it's not already running.
Uninstall uninstalls service with the specified name.
# Constants
OneshotService is a service that executes one time.
RestartOnFailure defines the restart on-failure rule for a service.
SimpleService is a simple service that is recommended for long running processes.