svc

package
v0.0.0-...-65751db Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: AGPL-3.0 Imports: 3 Imported by: 3

Documentation

Overview

Package svc provides utilities for managing system services.

Index

Constants

View Source
const (
	StatusRunning = "running"
	StatusStopped = "stopped"
	StatusUnknown = "unknown"
)

Service status constants

Variables

This section is empty.

Functions

func IsActive

func IsActive(serviceName string) (bool, error)

IsActive checks if a system service is running.

func Restart

func Restart(serviceName string) error

Restart restarts a system service by name.

func Start

func Start(serviceName string) error

Start starts a system service by name.

func Status

func Status(serviceName string) (string, error)

Status returns the status of a system service.

func Stop

func Stop(serviceName string) error

Stop stops a system service by name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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