systemd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFrom

func NewFrom(name string, userCfg *Config) string

NewFrom returns a new templated systemd configuration file.

Types

type Config

type Config struct {
	User    string   // User to configure systemd for, default is current user.
	Binpath string   // Path to binary
	Args    []string // The command is the position of the daemon command in the application command tree.
}

Config is a stub to generate systemd configuration files.

func NewDefaultConfig

func NewDefaultConfig() *Config

NewDefaultConfig returns a default Systemd service file configuration.

Jump to

Keyboard shortcuts

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