licd

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

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

Documentation

Index

Constants

View Source
const Name = "licd"

Variables

View Source
var Licd = geneos.Component{
	Name:         "licd",
	Aliases:      []string{"licds"},
	LegacyPrefix: "licd",
	DownloadBase: geneos.DownloadBases{Default: "Licence+Daemon", Nexus: "geneos-licd"},

	GlobalSettings: map[string]string{
		config.Join(Name, "ports"): "7041,7100-",
		config.Join(Name, "clean"): strings.Join([]string{
			"*.old",
		}, ":"),
		config.Join(Name, "purge"): strings.Join([]string{
			"*.log",
			"*.txt",
		}, ":"),
	},
	PortRange: config.Join(Name, "ports"),
	CleanList: config.Join(Name, "clean"),
	PurgeList: config.Join(Name, "purge"),
	ConfigAliases: map[string]string{
		config.Join(Name, "ports"): Name + "portrange",
		config.Join(Name, "clean"): Name + "cleanlist",
		config.Join(Name, "purge"): Name + "purgelist",
	},

	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`,
	},

	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