systemdinstaller

package
v0.0.0-...-9e673b7 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Util for programmatically writing systemd unit file so your service can be autostarted

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Args

func Args(args ...string) optFn

FIXME(security): args are not shell escaped - DO NOT TAKE THIS FROM USER INPUT

func Docs

func Docs(docs ...string) optFn

func Env

func Env(key string, value string) optFn

func GetHints

func GetHints(sf serviceFile) string

func Install

func Install(sf serviceFile) error

func RequireNetworkOnline

func RequireNetworkOnline(sf *serviceFile)

func SystemdServiceFile

func SystemdServiceFile(servicename string, description string, opts ...optFn) serviceFile

Types

This section is empty.

Jump to

Keyboard shortcuts

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