licd

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 10 Imported by: 0

README

geneos License Daemons

A licd instance is a Geneos License Daemon. There can only be one running licd per system.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Licd = geneos.Component{
	Name:         "licd",
	Aliases:      []string{"licds"},
	LegacyPrefix: "licd",
	DownloadBase: geneos.DownloadBases{Resources: "Licence+Daemon", Nexus: "geneos-licd"},
	PortRange:    "LicdPortRange",
	CleanList:    "LicdCleanList",
	PurgeList:    "LicdPurgeList",
	LegacyParameters: map[string]string{
		"binsuffix": "binary",
		"licdhome":  "home",
		"licdbins":  "install",
		"licdbase":  "version",
		"licdexec":  "program",
		"licdlogd":  "logdir",
		"licdlogf":  "logfile",
		"licdport":  "port",
		"licdlibs":  "libpaths",
		"licdcert":  "certificate",
		"licdkey":   "privatekey",
		"licduser":  "user",
		"licdopts":  "options",
	},
	Defaults: []string{
		`binary=licd.linux_64`,
		`home={{join .root "licd" "licds" .name}}`,
		`install={{join .root "packages" "licd"}}`,
		`version=active_prod`,
		`program={{join "${config:install}" "${config:version}" "${config:binary}"}}`,
		`logfile=licd.log`,
		`port=7041`,
		`libpaths={{join "${config:install}" "${config:version}" "lib64"}}`,
		`autostart=true`,
	},
	GlobalSettings: map[string]string{
		"LicdPortRange": "7041,7100-",
		"LicdCleanList": "*.old",
		"LicdPurgeList": "licd.log:licd.txt",
	},
	Directories: []string{
		"packages/licd",
		"licd/licds",
	},
}

Functions

This section is empty.

Types

type Licds

type Licds instance.Instance

func (*Licds) Add

func (l *Licds) Add(tmpl string, port uint16) (err error)

func (*Licds) Command

func (l *Licds) Command() (args, env []string, home string)

func (*Licds) Config

func (l *Licds) Config() *config.Config

func (*Licds) Home

func (l *Licds) Home() string

func (*Licds) Host

func (l *Licds) Host() *geneos.Host

func (*Licds) Load

func (l *Licds) Load() (err error)

func (*Licds) Loaded

func (l *Licds) Loaded() time.Time

func (*Licds) Name

func (l *Licds) Name() string

func (*Licds) Rebuild

func (l *Licds) Rebuild(initial bool) error

func (*Licds) Reload

func (l *Licds) Reload() (err error)

func (*Licds) SetLoaded added in v1.8.0

func (l *Licds) SetLoaded(t time.Time)

func (*Licds) String

func (l *Licds) String() string

func (*Licds) Type

func (l *Licds) Type() *geneos.Component

Return the Component for an Instance

func (*Licds) Unload

func (l *Licds) Unload() (err error)

Jump to

Keyboard shortcuts

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