sysvinit

package
v0.78.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sysvinit provides a set of functions to manage sysvinit services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(ctx context.Context, name string) error

Install installs a sys-v init script using update-rc.d

func InstallAll added in v0.68.0

func InstallAll(ctx context.Context, names ...string) error

InstallAll installs all sys-v init scripts using update-rc.d

func Remove added in v0.68.0

func Remove(ctx context.Context, name string) error

Remove removes a sys-v init script using update-rc.d

func RemoveAll added in v0.68.0

func RemoveAll(ctx context.Context, names ...string) error

RemoveAll removes all sys-v init scripts using update-rc.d

func Restart

func Restart(ctx context.Context, name string) error

Restart restarts a sys-v init script using service

func Stop added in v0.68.0

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

Stop stops a sys-v init script using service

func StopAll added in v0.68.0

func StopAll(ctx context.Context, names ...string) error

StopAll stops all sys-v init scripts using service

Types

This section is empty.

Jump to

Keyboard shortcuts

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