systemctl

package
v2.2.27 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable(name string) error

Disable 禁用服务

func Enable

func Enable(name string) error

Enable 启用服务

func IsEnabled

func IsEnabled(name string) (bool, error)

IsEnabled 服务是否启用

func Reload

func Reload(name string) error

Reload 重载服务

func Restart

func Restart(name string) error

Restart 重启服务

func Start

func Start(name string) error

Start 启动服务

func Status

func Status(name string) (bool, error)

Status 获取服务状态

func Stop

func Stop(name string) error

Stop 停止服务

Types

This section is empty.

Jump to

Keyboard shortcuts

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