systemctl

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableService

func DisableService(serviceName string) error

DisableService 禁止服务开机启动

func EnableService

func EnableService(serviceName string) error

EnableService 设置服务开机启动

func GetServiceStatus

func GetServiceStatus(serviceName string) string

GetServiceStatus 获取服务状态

func IsServiceRunning

func IsServiceRunning(serviceName string) bool

IsServiceRunning 检查服务是否运行

func RestartService

func RestartService(serviceName string) error

RestartService 重启服务

func StartService

func StartService(serviceName string) error

StartService 启动服务

func StopService

func StopService(serviceName string) error

StopService 停止服务

Types

This section is empty.

Jump to

Keyboard shortcuts

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