Documentation
¶
Overview ¶
Util for programmatically writing systemd unit file so your service can be autostarted
Index ¶
- func Args(args ...string) optFn
- func Docs(docs ...string) optFn
- func Env(key string, value string) optFn
- func GetHints(sf serviceFile) string
- func Install(sf serviceFile) error
- func RequireNetworkOnline(sf *serviceFile)
- func SystemdServiceFile(servicename string, description string, opts ...optFn) serviceFile
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 RequireNetworkOnline ¶
func RequireNetworkOnline(sf *serviceFile)
func SystemdServiceFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.