halt

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package halt is halt, and the shared implementation of reboot and poweroff: by default each asks init to shut the system down (init's signals: SIGINT reboots, SIGUSR1 halts, SIGUSR2 powers off), with busybox's options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v0.5.0

func Run(action Action, s applets.Streams, args []string) int

Run carries out action (or poweroff with -p) for the command named after it, and returns the exit status.

Types

type Action added in v0.5.0

type Action int

Action is what the command does to the machine.

const (
	Reboot Action = iota
	Halt
	Poweroff
)

Jump to

Keyboard shortcuts

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