systemd

package
v0.0.0-...-d615174 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Root to install the service file
	Root = "/lib/systemd/system"
	// Version is an incrementing version of the service file used.
	// increment it if you need a new one to be used over the previous
	// and handle the code for making sure the previous one is able to stop containers
	Version = 1
)

Variables

This section is empty.

Functions

func Command

func Command(ctx context.Context, args ...string) error

Command runs a systemd command

func Disable

func Disable(ctx context.Context, id string) error

func Enable

func Enable(ctx context.Context, id string) error

func Install

func Install() error

Install installs the needed systemd files to run containers as proxy to containerd

func Remove

func Remove() error

Remove the boss unit file

func Start

func Start(ctx context.Context, id string) error

func Stop

func Stop(ctx context.Context, id string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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