From e44344ee7ded67d8136ff70eeb85bdcc3d314cf7 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Sun, 20 Mar 2022 23:44:30 -0700 Subject: [PATCH] define unit in README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 954c39c..0fa111a 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ func main() { defer cancel() // Equivalent to `systemctl enable nginx` with a 10 second timeout opts := systemctl.Options{ UserMode: false } + unit := "nginx" err := systemctl.Enable(ctx, unit, opts) if err != nil { log.Fatalf("unable to enable unit %s: %v", "nginx", err)