Feature complete. Tests may change now, but API is frozen.

This commit is contained in:
Tai Groot
2021-05-17 00:46:59 -07:00
parent 15305985ee
commit a32749ff89
2 changed files with 138 additions and 3 deletions

View File

@@ -146,7 +146,8 @@ func IsFailed(ctx context.Context, unit string, opts Options) (bool, error) {
// these unit files to /dev/null, making it impossible to start them.
//
// Notably, Mask may return ErrDoesNotExist if a unit doesn't exist, but it will
// continue masking anyway.
// continue masking anyway. Calling Mask on a non-existing masked unit does not
// return an error. Similarly, see Unmask.
func Mask(ctx context.Context, unit string, opts Options) error {
var args = []string{"mask", "--system", unit}
if opts.UserMode {