func (sv *Unit) Stop() (err error) {
	if cmd := strings.Fields(sv.Definition.Service.ExecStop); len(cmd) > 0 {
		return exec.Command(cmd[0], cmd[1:]...).Run()
	}
	if sv.Cmd.Process != nil {
		return sv.Cmd.Process.Kill()
	}
	return nil
}
// Stop stops execution of the command specified in service definition
Stop stops execution of the command specified in service definition
// Stop stops execution of the command specified in service definition
func (sv *Unit) Stop() (err error) {
	if cmd := strings.Fields(sv.Definition.Service.ExecStop); len(cmd) > 0 {
		return exec.Command(cmd[0], cmd[1:]...).Run()
	}
	if sv.Cmd.Process != nil {
		return sv.Cmd.Process.Kill()
	}
	return nil
}
func ( sv * Unit ) Stop ( ) ( err error ) { if cmd := strings . Fields ( sv . Definition . Service . ExecStop ) ; len ( cmd ) > 0 { return exec . Command ( cmd [ 0 ] , cmd [ 1 : ] ... ) . Run ( ) } if sv . Cmd . Process != nil { return sv . Cmd . Process . Kill ( ) } return nil }
Stop stops execution of the command specified in service definition
Stop stops execution of the command specified in service definition