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: 2

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