systemdstatus

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: Apache-2.0 Imports: 5 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

fsstatus provides utility functions for querying several aspects of systemd's status, especially as pertains to monitoring.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListeningSockets

func ListeningSockets() (socks []string, err error)

ListeningSockets returns a list of all sockets in the "LISTENING" state

func ServiceActive

func ServiceActive(name string) (bool, error)

ServiceLoaded returns whether or not the given systemd service has ActiveState=active

func ServiceLoaded

func ServiceLoaded(name string) (bool, error)

ServiceLoaded returns whether or not the given systemd service has LoadState=loaded

func Timers

func Timers(all bool) (timers []string, err error)

Timers returns a list of the active systemd timers, as found under the UNIT column of `systemctl list-timers`. It can optionally list all timers.

func UnitFileStatuses

func UnitFileStatuses() (units, statuses []string, err error)

UnitFileStatuses returns a list of all unit files with their current status, as shown by `systemctl list-unit-files`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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