etcservice

package
v0.0.0-...-a234189 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package etcservices extracts useful info from the service command on linux

Csv output is particularly supported, so that a csvfile-based enterprise's ETL tools can also monitor its servers and desktops

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Header() string

Header is generic

func Keys_String2PtrServicedata

func Keys_String2PtrServicedata(_mp *map[string]*Servicedata) []string

Keys_String2PtrServicedata is generic

func Service

func Service(_verbose bool) (smap map[string]*Servicedata)

Service holds chkconfig info

func SortedKeys_String2PtrServicedata

func SortedKeys_String2PtrServicedata(_mp *map[string]*Servicedata) []string

SortedKeys_String2PtrServicedata is generic

Types

type Servicedata

type Servicedata struct {
	Service_ string
	Status_  string
	Pid_     string
}

Servicedata hold service data

func New

func New() *Servicedata

New is generic

func (*Servicedata) Csv

func (self *Servicedata) Csv() string

Csv is generic

func (*Servicedata) Print

func (self *Servicedata) Print()

Print is generic

func (*Servicedata) Sprint

func (self *Servicedata) Sprint() string

Sprint is generic

Jump to

Keyboard shortcuts

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