func Status(ctx context.Context, unit string, opts Options) (string, error) {
	var args = []string{"status", "--system", unit}
	if opts.UserMode {
		args[1] = "--user"
	}
	stdout, _, _, err := execute(ctx, args)
	return stdout, err
}
// Get back the status string which would be returned by running
// `systemctl status [unit]`.
//
// Generally, it makes more sense to programatically retrieve the properties
// using Show, but this command is provided for the sake of completeness
Get back the status string which would be returned by running
`systemctl status [unit]`.

Generally, it makes more sense to programatically retrieve the properties
using Show, but this command is provided for the sake of completeness
// Get back the status string which would be returned by running // ` systemctl status [ unit ] ` . // // Generally it makes more sense to programatically retrieve the properties // using Show but this command is provided for the sake of completeness
func Status(ctx context.Context, unit string, opts Options) (string, error) {
	var args = []string{"status", "--system", unit}
	if opts.UserMode {
		args[1] = "--user"
	}
	stdout, _, _, err := execute(ctx, args)
	return stdout, err
}
func Status ( ctx context . Context , unit string , opts Options ) ( string , error ) { var args = [ ] string { " " , " " , unit } if opts . UserMode { args [ 1 ] = " " } stdout , _ , _ , err := execute ( ctx , args ) return stdout , err }
Get back the status string which would be returned by running
`systemctl status [unit]`.
Get back the status string which would be returned by running ` systemctl status [ unit ] ` .