systemd

package
v0.0.0-...-8105f08 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServiceFile

func CreateServiceFile()

create the cockroach.service file

func DaemonReload

func DaemonReload() (out string, err error)

sudo systemctl reload-daemon

func Disable

func Disable() (out string, err error)

sudo systemctl disable cockroach

func Enable

func Enable() (out string, err error)

sudo systemctl enable cockroach

func InstallService

func InstallService()

install the cockroach.service file to /etc/systemd/system/

func Reload

func Reload() (out string, err error)

sudo systemctl reload cockroach

func Restart

func Restart() (out string, err error)

sudo systemctl restart cockroach

func Start

func Start() (out string, err error)

sudo systemctl start cockroach

func Status

func Status() (out string, err error)

sudo systemctl status cockroach

func Stop

func Stop() (out string, err error)

sudo systemctl stop cockroach

func UninstallService

func UninstallService()

remove the service by copying the file out

Types

This section is empty.

Jump to

Keyboard shortcuts

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